Collections:
Other Resources:
"for" - Loop on List of Files
What is the "for" batch command for?
✍: FYIcenter.com
The "for" command is for running a given command for each item in a list of files, path names, or any values.
Below is the "for" command syntax:
for %%parameter in (list) do command
When the "for" command is executed, the given command will be executed once for each item in the given list. The selected item will be assigned to the given parameter, if you want to process it in the given command.
Here is an example on how to use the "for" command to display contents of all *.log and *.txt files:
FOR %%p IN (*.log *.txt) DO TYPE %%p
⇒ "shift" - Shift Batch Parameters
2022-04-13, 1811🔥, 0💬
Popular Posts:
What is GoogleUpdaterService.exe - Google Updater Service? GoogleUpdaterService.exe is binary file o...
How do I move the licenses for the songs that I purchased from an online store to my new computer? T...
How to uninstall ActivePerl 5.8.8.820? If for some reason you want to uninstall ActivePerl from your...
This is what I do Charms bar >Settings> Change my PC settings > User > "Trust this PC" When I get my...
What is the "csrss.exe" process on windows 7? Is the "csrss.exe" process a virus? Can I terminate th...