Vb.Net help

lavnilu

New member
Joined
May 27, 2005
Messages
2
Programming Experience
Beginner
Hi

I have just shifted to Vb.Net from Vb6. I was using a shellwait command to call a command prompt.
How do i do that in VB.Net.Is there any shellwait command?
How do i call a command prompt in Vb.net

Pls help
Thanks
Nilu
 
To start any external program in VB.NET you use Process.Start(). There are a few overloads so you might want to check the help for the details. "cmd.exe" is the command prompt in Windows XP, so the easiest way to start a command window is to call Process.Start("cmd"). Note that this will start the command prompt at the current directory, which is likely to be the applications program folder. You can set the current directory first using System.IO.Directory.SetCurrentDirectory(path).
 
Back
Top