Share via

Unable to update PATH Environmental variable

Anonymous
2010-08-28T12:39:35+00:00

When I attempt to update the PATH in Advanced System Properties and click OK, the   %WINDIR% variable is no longer available. I am then unable to access any command that uses the %WINDIR%\System32 variable to locate an executable. For an unknown reason there also is a PATH variable under User variables with just C:\PHP in it. When I attempt to delete this, the same behavior occurs. I have to use system restore to get it back but then I lose my PATH changes.


Mike

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2010-08-30T07:05:17+00:00

    Mike

    Have you tried reinstalling PHP?

    You can change any registry keys, but I suggest you:

    1. Use the snipping tool and make a picture of the subkeys of Environment.
    2. Create a system restore point.
    3. Change the registry keys and restart the computer.
    4. Take the picture again and compare the two.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-08-29T23:59:24+00:00

    Any idea why changing the PATH variable  removes the %WINDIR% variable value?

    Can I fix the %WINDIR% variable in the Registry also?

    How do I fix my system to allow me to use the Advanced System Properties rather than the Registry?


    Mike

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-08-28T18:02:14+00:00

    The Environment Variables should match those shown in registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment. If necessary, change the path registry key in the right pane. Create a system restore point if you’re apprehensive about making registry changes.

    A full list of the variables can be displayed by opening a Run window (Windows key+R), type cmd /k set (note the two spaces) and press Enter.

    Also, you may wish to run your 'anti' programs, just in case you're infected.

    Was this answer helpful?

    0 comments No comments