Relsolving %systemroot% variable in PATH - TechRepublic
General discussion
May 28, 2000 at 10:28 AM
a fuchigami

Relsolving %systemroot% variable in PATH

by a fuchigami . Updated 25 years, 9 months ago

I’m having a problem with Windows NT resolving the %systemroot% system variable in the PATH. I’m trying to access a file in the WINNT\System32 directory. It is correctly added in the NT Path environment. When I look in the Environment Tab under Control Panel -> System, the GUI correctly maps %systemroot%\system32 to ‘C:\WINNT\System32’.

However, in the Command Prompt, if I do a ‘path’ command, the path variable shows the system variable (i.e. %systemroot%\system32. It doesn’t correctlymap the system variable %systemroot% to ‘C:\WINNT\’

Does anyone have any idea on how to fix this? I don’t really want to hardcode the path ‘C:\WINNT\System32’ to the system PATH variable, and I’ve checked if there is anything in User Environements or Autoexec.nt that would add/reset the system variables.

Thanks.

This discussion is locked

All Comments