I am trying to write a batch file that starts another batch file, waits for that batch file to complete its job, and then continue once that other batch file has exited. However, when I manually close the batch file launched by the first batch file, it comes up with a prompt saying:
^CTerminate batch job (Y/N)?
Is there a way to automatically select 'N', because it needs to delete some temporary files on exit.
Purpose/Premise of Script: To be able to remove a flash drive and lock the station (hence copying files to external source).
Summary of Script:
- Program Copies files to %homedrive%
- Program launches another script (one of the files copied to homedrive)
- After that program quits, it deletes the copied files
Solutions Tried:
- Different command switches inside of
START /WAIT +/I +/B(Adding/Ior/Bdid not produce anything useful) - Using
/Cand/Kswitches after theSTART /WAIT program.bat +/C +/K(had no affect)