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, ∼3108🔥, 0💬
Popular Posts:
What is "Lenovo Camera Mute" in a service on Lenovo laptop computer that supports the camera on/off ...
What is "Telephony" in my Windows XP service list? And how is "Telephony" service related to TapiSrv...
Where to get help on analyzing HijackThis log files? Analyzing HijackThis log files are not easy to ...
What files are stored in the "C:\Users\<userid >\AppData\Roaming "folder? Can I delete ...
Where to find tutorials on Internet Explorer (IE)? Here is a large collection of tutorials to answer...