Forum Home
Press F1
 
Thread ID: 106538 2010-01-12 23:45:00 need someway to shutdown all desktop machines but not server nedkelly (9059) Press F1
Post ID Timestamp Content User
848178 2010-01-14 03:28:00 from for /?

FOR /L %variable IN (start,step,end) DO command [command-parameters]

The set is a sequence of numbers from start to end, by step amount.
So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would
generate the sequence (5 4 3 2 1)
fred_fish (15241)
1 2 3