Quantcast
Channel: Unable to execute FOR loop from batch file - Super User
Browsing latest articles
Browse All 3 View Live

Answer by Rajesh for Unable to execute FOR loop from batch file

Please tryUse % when running code from the windows command line.Use %% when running code from the .bat script, inside a file.Change inside a .bat file:@echo off & for /f "delims=*" %%A in ('dir /s...

View Article



Answer by barlop for Unable to execute FOR loop from batch file

Try %% e.g. for %%f rather than for %f, that might work In batch files you have to use for %%f rather than for %f The for %f is only for the command line. Change all references, so I suppose %%~zA...

View Article

Unable to execute FOR loop from batch file

I am trying to execute the following command from inside a batch file:@echo off & for /f "delims=*" %A in ('dir /s /b') do echo %~fA %~zA >> "\path\to\output.txt"I found this command from...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images