O
Owen Funkhouser
When I load cmd.exe and execute a file that exists in C:\WINDOWS\System32, I get
the following error:
'attrib' is not recognized as an internal or external command,
operable program or batch file.
C:\>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\MICROS~2\Common\MSDev98\Bin;C:\PROGRA~1\MICROS~2\VC98\Bin;C:\PROGRA~1\MICROS~2\Common\Tools\WinNT;C:\PROGRA~1\MICROS~2\Common\Tools;C:\Program
Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft
Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
C:\>echo %SystemRoot%
C:\WINDOWS
Now if I replace "%SystemRoot%\system32" with "C:\WINDOWS\system32", the
"attrib" command is recognized.
Why is my PATH variable not resolving other environment variables?
the following error:
'attrib' is not recognized as an internal or external command,
operable program or batch file.
C:\>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\MICROS~2\Common\MSDev98\Bin;C:\PROGRA~1\MICROS~2\VC98\Bin;C:\PROGRA~1\MICROS~2\Common\Tools\WinNT;C:\PROGRA~1\MICROS~2\Common\Tools;C:\Program
Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft
Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
C:\>echo %SystemRoot%
C:\WINDOWS
Now if I replace "%SystemRoot%\system32" with "C:\WINDOWS\system32", the
"attrib" command is recognized.
Why is my PATH variable not resolving other environment variables?