Joined
·
3,162 Posts
Yep.. Nice find but there are more
Not to steal your thunder Mort but just an addition to your excellent post
Code:
Of course some of these are used more in DOS mode or for batch/VBS scripts.

Not to steal your thunder Mort but just an addition to your excellent post

Code:
Code:
Variable Typical value (May vary, depending on system)
%ALLUSERSPROFILE% C:Documents and SettingsAll Users
%APPDATA% C:Documents and Settings{username}Application Data
%COMPUTERNAME% {computername}
%COMSPEC% C:WindowsSystem32cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% Documents and Settings{username}
%PATH% C:WindowsSystem32;C:Windows;C:WindowsSystem32Wbem
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH
%PROGRAMFILES% Directory containing program files, usually C:Program Files
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SYSTEMDRIVE% The drive containing the Windows XP root directory, usually C:
%SYSTEMROOT% The Windows XP root directory, usually C:Windows
%TEMP% and %TMP% C:DOCUME~1{username}LOCALS~1Temp
%USERNAME% {username}
%USERPROFILE% C:Documents and Settings{username}
%WINDIR% C:Windows