Running nested .BAT files with PDQ Deploy
I have a .bat file which contains the following logic:
1. check that a folder exists and if it does end
2. Otherwise copy the folder to the end user computer
3. Run 2 .bat files from the folder created
I am not changing anything in PDQ package parameters. The command line in PDQ deploy by default displays - cmd.exe /s /c/ ""file.bat""
The deployment runs well up to the first .bat file of step 3. I can see in the log output that it succesfully completes the first bat file but does not jump to the second. BTW the bat files don't require user input.
the syntax of the call is simple:
c:\location\file1.bat
c:\location\file2.bat
Any suggestion would be appreciated
Comments
Are you actually using CALL commands?
Also you may want to use the full path can call the second batch like this.
START /Wait c:\location\file2.bat