calling a .bat program in a vb .net program

J

Janet

Hi,

I need to call a .bat program inside a vb .net program. I need to be
able to start the process and kill the process. I have yet to find
anything on this but have just started searching. Can someone
enlighten me? It was be very much appreciated.

Thanks,
Janet Heath
 
J

Janet

I need to stop or kill and then start the .bat after the .asp file is
removed.


'We need to delete the palmerup.asp file
'First we need to see if it exists before deleting the file
If errmsga = "Yes" And errmsgb = "Yes" And errmsgc = "Yes"
And msga = "Yes" And System.IO.File.Exists(sripalmerupfile) = True Then
'If w > -1 And x > -1 And y > -1 And z = -1 Then
'If System.IO.File.Exists(sripalmerupfile) = True Then
'Console.WriteLine(Line)
'Console.WriteLine(w)
'Console.WriteLine(x)
'Console.WriteLine(y)
'Console.WriteLine(z)
System.IO.File.Delete(sripalmerupfile)
Console.WriteLine("Removed palmerup.asp file")
'Console.WriteLine("sripalmerwebupfile exist")
End If
 
G

Guest

I need to call a .bat program inside a vb .net program. I need to be
able to start the process and kill the process. I have yet to find
anything on this but have just started searching. Can someone
enlighten me? It was be very much appreciated.

Take a look at the System.Diagnostics classes.
 
H

Herfried K. Wagner [MVP]

Spam Catcher said:
Take a look at the System.Diagnostics classes.

More specifically: 'System.Diagnostics.Process' and its 'Start' method.
 

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

Top