Some time ago I manually changed the WINDIR environment variable to test something in a legacy program I was working with (should have done this on a VM rather than my desktop :/ but it's too late now)
So for some reason now %WINDIR% does not resolve to c:\windows anymore, but to %SystemRoot%. From the command line:
echo %WINDIR% outputs %SystemRoot%
and
echo %SystemRoot% outputs C:\windows
Not being able to resolve WINDIR is causing me all sorts of head aches. I've tried setting the value of WINDIR explicitly to c:\windows in that console windows provides, but to no avail. I've also tried manually changing the windir registry key's value at
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment\windier
and
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment\windir
But still not luck. Has anyone seen this behavior before?
forgot to mention this is on windows 7 Enterprise ed
