Thursday, March 18, 2010

run a LOOP in windows Batch file

I have been searching for a way to run a simple loop to repeat a windows batch file , many website give some general commands but no examples , I found this one which exactly does what I wanted. Copy and paste this in a text file and save it with the extention xxx.bat and double click it or go to dos prompt, change the path to where the file is and type test.bat, example D:\> test.bat



ping /*this is the file I want to run repeatedly */

goto Loop


Post a Comment