Jump to content
CCleaner Community Forums

%SystemRoot% can't be resolved

Recommended Posts

Can you add a check for a bad registry key type:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path should be of type REG_EXPAND_SZ


Some installers change the type to REG_SZ when adding to the PATH which causes the command prompt PATH to show up with %SystemRoot% instead of C:\Windows (or whatever it should be). It means that any program that depends on automatic PATH expansion (e.g. XCOPY) will now fail unless the current working directory happens to be the Windows folder.





PCReview Forums %SystemRoot% can't be resolved


Windows IT Pro %SystemRoot% is not expanded when I use it in a command.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...