Windows 10 for /f %%i in ('dir') do echo %%i

Dagger

New Member
Joined
May 21, 2021
Messages
1
the for command script doesn't work, it returns error as:
'dir' is not recognized as an internal or external command, operable program or batch file.
it just doesn't recognized any command I put in the quotes.
However, on my other machine, it works fine.
Both of them are system admin and same PATH.
dos command window version slightly different, any idea?
 


Post the script
 


Back
Top