Results 1 to 1 of 1
2008-10-16, 04:18 #1
- Join Date
- Feb 2001
- Yilgarn region of Toronto, Ontario
- Thanked 0 Times in 0 Posts
Iterate through two sets parameters (Win XP sr3)
<pre>for %h in (x y) do for in (g p c d) do echo %h</pre>
I had a need to iterate a DOS Batch file through two backup drives and through four local drives for each backup drive.
I'd forgotten (!) about the FOR command.
Some reading here http://commandwindows.com/batchfiles-iterating.htm