Computing.Net > Forums > Windows XP > Error - cmd.exe Path Variable

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Error - cmd.exe Path Variable

Reply to Message Icon

Name: astroraptor
Date: June 29, 2008 at 18:43:07 Pacific
OS: Windows XP Pro
CPU/Ram: 1.8GHz/1024MB
Product: IBM/NetVista
Comment:

Every time I go into the command-line, commands like "ping" do not work unless I navigate to C:\Windows\System32. If I echo %path% and then set Path to what was echoed, everything workds as it should somehow yet technically nothing was changed. Anyone?



Sponsored Link
Ads by Google

Response Number 1
Name: Dan Penny
Date: June 29, 2008 at 19:54:30 Pacific
Reply:

Right click My Computer. Choose Advanced. At the bottom, click Environment Variables. Scroll down to PATH. Is C:\Windows\System32 included somewhere in that line?

It's a good day when you learn something


0

Response Number 2
Name: astroraptor
Date: June 30, 2008 at 05:31:19 Pacific
Reply:

Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;


0

Response Number 3
Name: Chuck 2
Date: June 30, 2008 at 06:09:56 Pacific
Reply:

My XP Home has path as --

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

Nothing more than that.


0

Response Number 4
Name: Razor2.3
Date: June 30, 2008 at 08:30:29 Pacific
Reply:

astroraptor: Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;
If, when you echo %PATH%, and it starts with PATH=, it shouldn't. Change that.


0

Response Number 5
Name: astroraptor
Date: June 30, 2008 at 09:23:37 Pacific
Reply:

It doesn't ...


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: June 30, 2008 at 17:07:45 Pacific
Reply:

Have you tried just deleting the PATH registry keys, and rebuilding the settings from scratch?


0

Response Number 7
Name: astroraptor
Date: June 30, 2008 at 18:34:21 Pacific
Reply:

Hmm, weird. I copied the line. Deleted the variable. Started cmd.exe and exit right away. Went back, created a new Path variable and pasted what I had copied earlier. Click okay, all is well. :P Figure that one out.


0

Response Number 8
Name: Dan Penny
Date: June 30, 2008 at 19:22:10 Pacific
Reply:

Check the properties of your Command Prompt shortcut, or create a new shortcut with

%SystemRoot%\system32\cmd.exe

as the target, and

%HOMEDRIVE%%HOMEPATH%

in the Start in box.

It's a good day when you learn something


0

Response Number 9
Name: Razor2.3
Date: July 1, 2008 at 01:48:22 Pacific
Reply:

astroraptor: Figure that one out.
My guess? Some invalid character found its way into the registry key, and it broke the variable. Why it didn't break the displaying of said variable, I know not.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Error - cmd.exe Path Variable

cmd.exe problems. www.computing.net/answers/windows-xp/cmdexe-problems/136365.html

The RIGHT way to run CMD.EXE www.computing.net/answers/windows-xp/the-right-way-to-run-cmdexe/65622.html

can't open cmd.exe www.computing.net/answers/windows-xp/cant-open-cmdexe/142739.html