G
Guest
AutoRun file contents are included in the FOR /F command.
Without AutoRun, simple FOR /F command
for /f "delims=" %f in ('dir') do echo %f
This simple FOR /F just echos each line produced by the 'dir' command. OK.
Then i set HKCU/Software/Microsoft/Command Processor/AutoRun=c:\profile.bat
so that every time i started a CMD prompt the profile.bat would get run. I
put some DOSKEY command in there.
But now the FOR /F command is strange. The previous example echos al the
lines from my profile.bat, and then all the lines from the 'dir' command.
Seems like a bug to me.
Without AutoRun, simple FOR /F command
for /f "delims=" %f in ('dir') do echo %f
This simple FOR /F just echos each line produced by the 'dir' command. OK.
Then i set HKCU/Software/Microsoft/Command Processor/AutoRun=c:\profile.bat
so that every time i started a CMD prompt the profile.bat would get run. I
put some DOSKEY command in there.
But now the FOR /F command is strange. The previous example echos al the
lines from my profile.bat, and then all the lines from the 'dir' command.
Seems like a bug to me.