Using FOR /FOR /f Commands in Windows

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.

Syntax: syntax-FOR-Files
FOR %%parameter IN (set) DO command

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...