Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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

0

Comments

2 comments
Date Votes
  • Are you actually using CALL commands?

    0
  • Also you may want to use the full path can call the second batch like this.

    START /Wait c:\location\file2.bat

    0