I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going?

@echo off
MapNetworkDrive_J.cmd
MapNetworkDrive_Y.cmd

I have tried this:

@echo off
start MapNetworkDrive_J.cmd
start MapNetworkDrive_Y.cmd

however, this starts two new command windows which after they are done remain open in the users session.

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

Use the call command:


@echo off
call MapNetworkDrive_J.cmd
call MapNetworkDrive_Y.cmd
link|improve this answer
feedback

Try to replace start by cmd -c

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.