Hello everyone,
I have just found out the way to execute multiple commands in DOS FOR LOOP. The trick is ‘&’ between commands
Ex:
echo. > t.tmp
for /f %%a IN ('dir /b *.sql') do ( echo PROMPT %%a >> t.tmp & echo @%%a >> t.tmp)
Have fun !!!
Hello everyone,
I have just found out the way to execute multiple commands in DOS FOR LOOP. The trick is ‘&’ between commands
Ex:
echo. > t.tmp
for /f %%a IN ('dir /b *.sql') do ( echo PROMPT %%a >> t.tmp & echo @%%a >> t.tmp)
Have fun !!!