Question Send commands to cmd

bavman

New member
Joined
Aug 18, 2010
Messages
1
Programming Experience
Beginner
Hello, im having some trouble with the stated question.

What i want to do is to be able to open cmd (this is how ive done it):
VB.NET:
Dim s As Process
        s.Start("C:\Windows\System32\cmd.exe")

Now i want to be able to write a command to the just opened command prompt like "shutdown -s" then press enter.

How would i go about achieving this?

thanks for any help
 
Back
Top