Run second command after 1st ends
Posted: 03 Oct 2014 08:03
Hi All....
I want to run the second command starting with the "md mapsonly" only after the line above has completed it's job.
The time it takes to complete the 1st task will vary from 5 seconds to 5 minutes.
How can I accomplish this without calling a 2nd external batch file?
Thanks!
Val
@echo off
md vehicsonly
for /f "eol=: delims=" %%F in ('findstr /m /I vehicles *.idf') do @move "%%F" vehicsonly >nul
md mapsonly
for /f "eol=: delims=" %%F in ('findstr /m /I maps *.idf') do @move "%%F" mapsonly >nul

I want to run the second command starting with the "md mapsonly" only after the line above has completed it's job.
The time it takes to complete the 1st task will vary from 5 seconds to 5 minutes.
How can I accomplish this without calling a 2nd external batch file?
Thanks!
Val
@echo off
md vehicsonly
for /f "eol=: delims=" %%F in ('findstr /m /I vehicles *.idf') do @move "%%F" vehicsonly >nul
md mapsonly
for /f "eol=: delims=" %%F in ('findstr /m /I maps *.idf') do @move "%%F" mapsonly >nul