Here is the code. It will open the cmd.exe on the server and keep the window open. It does not use the arguments. I want it to net send a computer, but it doesnt. I cannot add the net send into the filename...because net.exe is the filename but not all the extra stuff after it. Can someone please help me on how to execute an exe and put arguments on the end of it. thx (plz DO NOT give me VB 6 or .NET code...I am using the ASP.NET webpage code...and the VB6 code does not work, i have tried)
Dim myProcess As New System.Diagnostics.Process()
myProcess.StartInfo.FileName = "cmd.exe"
myProcess.StartInfo.Arguments = "net send computer test"
myProcess.StartInfo.UseShellExecute = True