To simplify the task of Windows Hosting experts, two commands come in the rescue. Let’s find the execution of FOR and FOR /f commands.
FOR /f : Search for a text string in a file & display all the lines where it is found.
Syntax: FOR /F ["options"] %%parameter IN (filenameset) DO command
For: Conditionally perform a command several times.
FOR %%parameter IN (set) DO command