All Programs issue


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
 
Ad

Advertisements

S

S. Taylor

Wesley Vogel said:
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.

Some enviroment variables are set in the registry, which command.com doesn't
have access to.
 
Ad

Advertisements

W

Wesley Vogel

Some enviroment variables are set in the registry, which command.com
doesn't have access to.

Bull.

All the User and System Environment Variables are stored in the registry.

User Environment Variables are stored here...
HKEY_CURRENT_USER\Environment

System Environment Variables are stored here...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment

The set command is an internal command for both cmd.exe and command.com. It
is obvious to me that the commands are different.

How to propagate environment variables to the system
http://support.microsoft.com/default.aspx?scid=kb;en-us;104011

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top