Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running multiple batch files in DOS Prompt

Status
Not open for further replies.

RizMan

Programmer
Jun 13, 2003
20
FR
For the moment I am writing a startInterface for an old Software some people are using here at my company.
To start it, I need to call 2 batch files. I can do that via the Shell Command. No problem. However, the first batch sets Environment Path variables which are only valid in the current Dos Box. However, the Dos Box closes after the first Batch file finished processing. The Second Shell Command opens a new Dos Box, where the Environment Variables aren't set anymore.
So what I need to know is how to force VB.NET to keep the DosPrompt Open after the first .bat has launched and run the second one in the very same DosPrompt.

Any help would be appreciated.
 
I solved the thing. I'm simply creating a temporary .bat file where I put the commands to call and then run the bat using the Shell command.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top