R
Rich Pasco
Mostly we put "@echo off" as the first line of a BAT file (command
shell script) unless we want to watch it execute, line by line, in
which case we omit it.
However, even then, the text echoed to the screen does not match the
commands in the file!
My "test.bat" has this line, which should list the subdirectories:
for /D %%d in (*) do echo %%d
however when it is executed, the command is displayed on the screen as
for / %d in (*) do echo %d
I am not too concerned with the double %% getting shown as single %,
but what concerns me is the disappearance of the D after the / mark
in the first options.
Can anyone explain this?
The script still seems to work OK (i.e. it is listing directories
rather than plain files) but why isn't it displayed correctly to
the screen?
I'm using Windows XP 5.1 SP3.
- Rich
shell script) unless we want to watch it execute, line by line, in
which case we omit it.
However, even then, the text echoed to the screen does not match the
commands in the file!
My "test.bat" has this line, which should list the subdirectories:
for /D %%d in (*) do echo %%d
however when it is executed, the command is displayed on the screen as
for / %d in (*) do echo %d
I am not too concerned with the double %% getting shown as single %,
but what concerns me is the disappearance of the D after the / mark
in the first options.
Can anyone explain this?
The script still seems to work OK (i.e. it is listing directories
rather than plain files) but why isn't it displayed correctly to
the screen?
I'm using Windows XP 5.1 SP3.
- Rich