Can CMD.EXE scripts use Shell Extensions ?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
alan_b
Expert
Posts: 357
Joined: 04 Oct 2008 09:49

Can CMD.EXE scripts use Shell Extensions ?

#1 Post by alan_b » 26 Aug 2010 10:19

CD %{Environmental Variable}% is good for both XP and Vista when the variable is defined.

CD %LOCALAPPDATA% does not work on XP because by default there is no such Environmental Variable.

What is unknown to DOS is available to XP via Shell Extensions

I believe there are many more "special folders" known to Shell Extensions that are not known to variables.

Is there a way for a CMD.EXE script to use a Shell Extension when no convenient variable exists,
either for targetting a command such as CD,
or for assigning the value to a new temporary environmental variable ?

Regards
Alan

Post Reply