I’m looking to run a second batch command from .bat but after the first command has been done.
REN "myfile.txt" "my_file.txt"
start "title" "path"
Here, I want the rename command to be executed before the process I wanted to start that has been terminated or executed. why it doesn’t work in sequence order?
Update:
Both commands work correctly in order if I put a ‘pause’ or /sleep between the commands.
Try putting the
RENcommand in a separate batch file–I thinkCALLmay force the batch to wait until it returns:— file1.bat
— file2.bat