Loop through arguments passed to batch Script

Custom / CUSTOM
October 23, 2010 at 23:32:14
Specs: Microsoft Windows 7 Ultimate, 2.814 GHz / 4 GB
It's been a while since I've used batch so I'm stuck with a simple problem. I want to drag and drop a few files on a batch file and have it loop through and do something to each file. It's killing me I can't find an example in the scripts I have laying around so I turn to the most helpful place ever. (I'm being serious, gotten more scripting help here than anywhere)

See More: Loop through arguments passed to batch Script

Report •


#1
October 24, 2010 at 03:35:24
:loop
@echo %1
shift
if not "%~1"=="" goto loop

How To Ask Questions The Smart Way


Report •

#2
October 24, 2010 at 10:49:05
Thanks again. Went and added that straight to my list of handy things

Report •
Related Solutions


Ask Question