Question Stop while a batch file is running

Billie1123

Member
Joined
Oct 24, 2009
Messages
11
Programming Experience
Beginner
I've got a program that runs a batch file, and while this file is runing, pc's internet conection doesn't work (that's ok). When it winished by its own, everything works fine again.

So I want the program to wait for the batch process to finish to keep reading the rest of the code. is it clear?

I've tried with

VB.NET:
Process1.WaitForExit("cmd.exe")

But it says: "Conversion from string "cmd.exe" to type 'Integer' is not valid."
By the way, does is works in other versions appart from windows XP?
 
Back
Top