#122480 - 2004-07-09 03:49 PM
Re: Hide output of shell "%Comspec% /c rd /s /q..." ?
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
Your welcome. No one ever wants to debate me on this, but if $vars in strings are evil, than %vars%'s in strings are equally evil.
We did have a rambling debate on this, but I can't find it. I'd agree that "no vars" should include anything that might be expanded, including macros and environment strings.
I did turn up a quote from Ruud stating that he intended to have a NoMacrosInStrings.
Quote:
should HKCU and HKLM also be excluded cuz they too are macros of sorts.
Not really. They don't get expanded at all - HKCU is just HKCU regardless of how or where you use it. The only thing that is special about it is that if it is at the start of a string passed to a registry function it is recognised by the function as a shorthand or alias. The string that the function receives however remains unchanged.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1955 anonymous users online.
|
|
|