How to excute DOS command in VB.NET?

  • Thread starter Thread starter chen jin cai via DotNetMonster.com
  • Start date Start date
C

chen jin cai via DotNetMonster.com

I want to excute a DOS command backgroup when I click a button in my
application,and the DOS window needn't to be open or saw when the application is running?In addition,I uses different DOS command frequently.
 
Chen,

One approach see the two used classes when you want to know more.
\\\
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\windows\win.ini"
pi.FileName = "notepad.exe"
p.startinfo = pi
p.Start()
///

I hope this helps?

Cor
 
Back
Top