W
Wesley Vogel
I have one machine, not on any network and one hard drive with one volume,
C:. So I can't experiment with any of this stuff.
I agree %Homedrive%\%Homepath% = %userprofile%
But I like to keep things simple. So %Homedrive%\%Homepath% may be alright
if on a network, but %userprofile% is shorter. %Homedrive%\%Homepath% may
be more precise, just like pi is more precise than stating 3.14 because the
former goes out more decimal places. But 3.14 is usually close enough for
the girls that I go out with.
%HOMEPATH% = The full path of the user's home directory.
%HOMEDRIVE% = Returns which local workstation drive letter is connected to
the user's home directory.
%USERPROFILE% = The location of the profile for the current user.
%windir% = %systemroot% But apparently, not always.
%systemroot% = The location of the Windows root directory.
%windir% = The location of the operating system directory.
SWAG if dual boot these may be different. I do not see how else they would
not be the same always. Unless maybe this is left over from MS-DOS days
when there was DOS and Windows.
This is interesting.
With cmd.exe...
C:\>echo %systemroot%
C:\WINDOWS
C:\>echo %windir%
C:\WINDOWS
With command.com...
C:\>echo %systemroot%
C:\WINDOWS
C:\>echo %windir%
%windir%
Set in command.com does not list WINDIR. That just confused me even more.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In
C:. So I can't experiment with any of this stuff.
I agree %Homedrive%\%Homepath% = %userprofile%
But I like to keep things simple. So %Homedrive%\%Homepath% may be alright
if on a network, but %userprofile% is shorter. %Homedrive%\%Homepath% may
be more precise, just like pi is more precise than stating 3.14 because the
former goes out more decimal places. But 3.14 is usually close enough for
the girls that I go out with.
%HOMEPATH% = The full path of the user's home directory.
%HOMEDRIVE% = Returns which local workstation drive letter is connected to
the user's home directory.
%USERPROFILE% = The location of the profile for the current user.
%windir% = %systemroot% But apparently, not always.
%systemroot% = The location of the Windows root directory.
%windir% = The location of the operating system directory.
SWAG if dual boot these may be different. I do not see how else they would
not be the same always. Unless maybe this is left over from MS-DOS days
when there was DOS and Windows.
This is interesting.
With cmd.exe...
C:\>echo %systemroot%
C:\WINDOWS
C:\>echo %windir%
C:\WINDOWS
With command.com...
C:\>echo %systemroot%
C:\WINDOWS
C:\>echo %windir%
%windir%
Set in command.com does not list WINDIR. That just confused me even more.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In