Jump to content

Command Prompt ignoring $PATH?


ProdigySim

Recommended Posts

When I open a commant prompt and type ipconfig or some other command like that, it gives me the canned "Can't find it! lol" message that it gives for missing files.

However, IPCONFIG.EXE is in my C:\Windows\System32\ directory. I went there myself :P

However, I can see nothing wrong with my Path variable...

Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Program Files\WinSCP3\;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
SystemDrive=C:
SystemRoot=C:\WINDOWS
windir=C:\WINDOWS

I get those from "set" in the command line.

I also found a site that said to check if my Registry Key for the Path was the wrong data type. It wasn't.

I'm fresh out of ideas. Anyone here have one?

EDIT: Also, I'm on SP2, and the only thing that I would suspect *might* disable some function was MSFT's AntiSpyware thing. But that doesn't make much sense at all.

Link to comment
Share on other sites


Look at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

and verify that Path is type REG_EXPAND_SZ. If it's not, it needs to be so delete Path and create a new expandable string value called Path and enter your path. Logoff or reboot to see change take effect.

Link to comment
Share on other sites

Look at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

and verify that Path is type REG_EXPAND_SZ. If it's not, it needs to be so delete Path and create a new expandable string value called Path and enter your path. Logoff or reboot to see change take effect.

Thanks! That fixed it!

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...