- May
- 3,515
- 5
Environment variables:
usrdsk="C:\Documents and Settings\ESF\desktop"
windsk="C:\Documents and Settings\All Users\desktop"
Aliases:
usrdsk=cdd/n %usrdsk
windsk=cdd/n %windsk
In a batch file I was debugging I have the command:
do dr in /l windsk usrdsk
When I use the variable view window to display DR in the loop, the value
shown is the expanded alias, not the expanded variable. This seems to happen
only for the value display, because the batch line containing "pushd %[%dr]"
is executed correctly, the debugger helped me find my file naming mistakes
resulting in odd but correct display by the batch file.
--
Steve
usrdsk="C:\Documents and Settings\ESF\desktop"
windsk="C:\Documents and Settings\All Users\desktop"
Aliases:
usrdsk=cdd/n %usrdsk
windsk=cdd/n %windsk
In a batch file I was debugging I have the command:
do dr in /l windsk usrdsk
When I use the variable view window to display DR in the loop, the value
shown is the expanded alias, not the expanded variable. This seems to happen
only for the value display, because the batch line containing "pushd %[%dr]"
is executed correctly, the debugger helped me find my file naming mistakes
resulting in odd but correct display by the batch file.
--
Steve