Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim myProcess as Process = New Process
- Dim command, ip as String
- myProcess.StartInfo.FileName = "c:windowssystem32cmd.exe"
- myProcess.StartInfo.UseShellExecute = False
- myProcess.StartInfo.CreateNoWindow = True
- myProcess.StartInfo.RedirectStandardInput = True
- myProcess.StartInfo.RedirectStandardOutput = True
- myProcess.StartInfo.RedirectStandardError = True
- myProcess.Start()
- Dim sIn As System.IO.StreamWriter = myProcess.StandardInput
- sIn.Write("cd c:" & System.Environment.NewLine)
- sIn.Write("myexeFile " & command & " " & ip & System.Environment.NewLine)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement