2

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.

Nate
  • 2,151
  • 6
  • 26
  • 41

2 Answers2

3

Use the call command:


@echo off
call MapNetworkDrive_J.cmd
call MapNetworkDrive_Y.cmd
MattB
  • 11,194
  • 1
  • 30
  • 36
0

Try to replace start by cmd -c

rolaf
  • 568
  • 1
  • 4
  • 8