Question
Thread display: Collapse - |
All Answers
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
for /f function with dir command results in: 'dir' is not recognized as an
operable program or batch file. "
PC is XP Pro SP3.
This is the command. Replacing 'dir' with any other command results in the same error.
for /f %a in ('dir') do echo %a
This is run straight from the command line with admin rights and command extensions are confirmed to be enabled.
I'm stumped.