Re: Need help with command prompt path
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Mon, 2 Oct 2006 22:43:57 +1000
You confirm my suspicion. When you type "path" at the
Command Prompt then you're supposed to get a fully
resolved path without any variables. Your path shows
unresolved variables and this is why your commands failed.
The root cause is an incorrect value type in the registry
for "path". The 'Path', 'Windir', 'Os2LibPath' and 'ComSpec'
must be of type REG_EXPAND_SZ, not REG_SZ.
I recommend that you change it back to what it should be.
You can see it here:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
"TonyV" <TonyV@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6B99B548-8E6F-4ADD-8B74-0EDA74FCE6DC@xxxxxxxxxxxxxxxx
I access command prompt by clicking 'Start, Run' and entering CMD.PATH=C:\PROGRA~1\Borland\Delphi5Bin;C:\PVSW\BIN;%systemroot%;%systemroot%\sy
Then I get this prompt: P:\>. This is one of my network drives.
When I then change to C: Drive, the prompt is C:\.
The path look as follows:
stem32;%systemroot%\system32\wbem;C:\PROGRA~1\Symantec\PC
next
"Pegasus (MVP)" wrote:
You actually cured the symptoms, not the cause. The registry
entry that defines your path is of the wrong type. That's why
I asked my question (which you did not answer).
"TonyV" <TonyV@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AAF798C9-1F6E-4D5B-BF70-ECB9567A1A49@xxxxxxxxxxxxxxxx
i changed my path enviroment to C:\WINDOWS
and C:\WINDOWS\SYSTEM32 and removed the %systemroot% entries.
Now it's working fine.
Thankyou.
"alanglloyd@xxxxxxx" wrote:
Check your %SystemRoot% and %System% settings by opening a command
window and entering the command ...
SET
... or ...
SET | MORE
.... to see the list of environment variables. If you have a lot of
environment variables press Return to get next line, Space to get
|pageful.
Also right-click and select properties on the Programs | Accessories
C:\WINDOWSCommand Prompt menu item. I have ...
Target : %SystemRoot%\system32\cmd.exe
Start In : %HOMEDRIVE%%HOMEPATH%
My PATH environment variable (enter PATH command) includes
and C:\WINDOWS\SYSTEM32 as a string, not the %SystemRoot% variable.
Alan Lloyd
.
- Follow-Ups:
- Re: Need help with command prompt path
- From: TonyV
- Re: Need help with command prompt path
- References:
- Re: Need help with command prompt path
- From: alanglloyd
- Re: Need help with command prompt path
- From: Pegasus \(MVP\)
- Re: Need help with command prompt path
- From: TonyV
- Re: Need help with command prompt path
- Prev by Date: Re: Microsoft has a competition!!!
- Next by Date: Re: Something is wrong with my computer!
- Previous by thread: Re: Need help with command prompt path
- Next by thread: Re: Need help with command prompt path
- Index(es):