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, ∼2936🔥, 0💬
Popular Posts:
What is ActivePerl? ActivePerl, developed by ActiveState Software Inc., is the complete, ready-to-in...
What is the "IP Helper (iphlpsvc)" system service on Windows Server 2012? Can I disable "IP Helper"?...
How to verify IIS configuration for PHP scripts? If you have followed our Configuring IIS for PHP Sc...
What is "SMS Task Sequence Agent" in my Windows 7 service list? And how is "SMS Task Sequence Agent"...
What is the difference between a Web page and a filtered Web page? Word 2007 supports 2 Web page for...