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, 1924🔥, 0💬
Popular Posts:
How to increase the remote login limit on Windows 10? By default, Windows 10 only allows 1 remote lo...
How to use .htaccess file with Apache server on Window systems? Assuming that you have installed the...
What is "Pml Driver HPZ12" in my Windows 7 service list? And how is "Pml Driver HPZ12" service relat...
Can I disable Windows service "Network Location Awareness (NLA)" to speedup my computer? Microsoft a...
What is "IP Helper" in my Windows XP service list? And how is "IP Helper" service related to iphlpsv...