Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Use the call command:


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

Try to replace start by cmd -c

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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