Hi,
how do i execute a .bat file from vb.net?
Cheers
Nick
sorted!
Code:Dim proc As New Process()
proc.StartInfo.FileName = "c:\file.bat"
proc.Start()
Printable View
Hi,
how do i execute a .bat file from vb.net?
Cheers
Nick
sorted!
Code:Dim proc As New Process()
proc.StartInfo.FileName = "c:\file.bat"
proc.Start()
you could pass the file name in the new constructor also, just to make it easier:DQuote:
Originally posted by nswan
Hi,
how do i execute a .bat file from vb.net?
Cheers
Nick
sorted!
Code:Dim proc As New Process()
proc.StartInfo.FileName = "c:\file.bat"
proc.Start()
dim proc as new process("C:\file.bat")