The first
for varies %%x from 1 to 10 incrementing by 1. This is strictly used as a counter and limits the number of iterations.
The second
for get a list of all the files in the c:\temp directory and copies each one back to the same directory appending the value of %%x to keep each file name unique.
Basically, each time %%x in incremented, the number of files in c:\temp doubles. Do this enough times and geometric progression should fill up a 250GB disk in no time.
Hint: If the initial file is extremely large, the time to fill the disk is reduced.
Wouldn't a
format be easier?