::This line is just in case n has been defined before the batch file is run
cd "c:\"Documents and Settings"
dir /b /s *.jpg > c:\pics\listing.txt
For /F "tokens=*" %%I IN (%_InputFile%) DO (
:: comment out the following if you don't want to watch the progress
echo Now copying: "%%I"
Set /a n+=1
Open in new window
IT issues often require a personalized solution. With Ask the Experts™, submit your questions to our certified professionals and receive unlimited, customized solutions that work for you.