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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top