Friday, October 18, 2013

Cycle from file with specified extension and do something in script


FOR %variable IN (set) DO command [command-parameters]

Example: cycle through all assemblies in current directory and install them in GAC
for /f  %%a IN ('dir /b *.dll') do  gacutil -i  %%a