make Windows 7 wait for commands to finish in BAT file

February 17, 2012 at 12:07:46
Specs: Windows 7
I have a small batch file that runs one-step-at-a-time on a Windows XP computer, but my Windows 7 computer blasts through all the commands in the file without waiting for the previous commands to finish, so my file transer/copy isn't done and it's already onto trying to rename the file and/or move it somewhere else.

How do I get Windows 7 to run the .bat file the same way Windows XP did: one step at a time, waiting for each step to complete before moving to the next.

See More: make Windows 7 wait for commands to finish in BAT file

Report •

February 17, 2012 at 13:36:59
What you report is very strange since batch script statements are executed sequentially by definition. As far as I know, there are very very rare cases where this rule is disregarded, but for legacy plain DOS batch with special executables embedded. Post the script as more info is needed.

Report •

February 20, 2012 at 05:53:03
The behavior of batch scripts has not significantly changed since Vista. Without seeing the script or the environment, I'm just going to guess an anti-virus is getting in the way.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question