the code or program? you can do it in notepad, saving the file as '.bat' as for the code, i have no isea..
http://www.cs.ntu.edu.au/homepages/bea/hom...escription.html about the middle of the page, "Command: FOR" hope this helps