%SystemRoot% can't be resolved

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.

Cheers

Eric

PCReview Forums %SystemRoot% can't be resolved

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