Re: Cmd does not recognise 'ipconfig'

From: David Candy (.)
Date: 02/03/05


Date: Thu, 3 Feb 2005 16:12:08 +1100

Your path is wrong.

When typing path at a command prompt the %systemroot% is converted to whatever it is (usually c:\windows).

I suspect that the registry key holding the path is of Reg_SZ type rather Reg_Expand_SZ type.

I'm also unsure if a trailing ; on the path matters or not. You can experiment and let us know.

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

A Reg_Expand tell windows or whatever program is using the value to expand environmental strings.

-- 
----------------------------------------------------------
http://www.uscricket.com
"Shifer" <Shifer@discussions.microsoft.com> wrote in message news:9C931043-65FB-488A-9F9C-66B3313E9C65@microsoft.com...
>I am now having an identical problem to what  DJ was having last year...only 
> as far as I can tell, my Path statement is correct.
> 
> Here is a copy/pasted cmd session:
> 
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> 
> C:\Documents and Settings\Rik>ping
> 'ping' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\Documents and Settings\Rik>tracert
> 'tracert' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\Documents and Settings\Rik>ipconfig
> 'ipconfig' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\Documents and Settings\Rik>path
> PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Fi
> les\Common Files\Roxio Shared\DLLShared;C:\Program Files\MySQL\MySQL Server 
> 4.1bin;
> 
> C:\Documents and Settings\Rik>cd\
> 
> C:\>cd\windows\system32
> 
> C:\WINDOWS\system32>ipconfig
> 
> Windows IP Configuration
> 
> 
> Ethernet adapter Local Area Connection:
> 
> Connection-specific DNS Suffix . : Shifer
> IP Address. . . . . . . . . . . . : 192.168.2.54
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . : 192.168.2.1
> 
> C:\WINDOWS\system32>%systemroot%
> 'C:\WINDOWS' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\WINDOWS\system32>
> 
> 
> If I'm missing something, I'll shut up forever with a slight push in the 
> right direction.
> 
> "wayne" wrote:
> 
>> glad it worked
>> 
>> Wayne
>> 
>> 
>> "DJ" <DJ@discussions.microsoft.com> wrote in message 
>> news:1A2330B2-BAC3-482B-97B3-23AF36EADBF8@microsoft.com...
>> >I have no idea what you mean but your advice gave my friend the inspiration
>> > on how to solve this problem! Anyways, he's saying that the path file 
>> > indeed
>> > had a mistake and that the problem is completely solved now.
>> >
>> > Thanx Wayne for your quick response and great help! :-)
>> >
>> > "Wayne" wrote:
>> >
>> >> probably  your path statement is messed up do a search for the file go to
>> >> the command prompt change to that directory and see if it works
>> >>
>> >> Wayne
>> >>
>> >> "DJ" <DJ@discussions.microsoft.com> wrote in message
>> >> news:7F013BD4-229B-422E-AA00-9592A249D8D1@microsoft.com...
>> >> > When typing 'ipconfig' in cmd.exe the response is that it is not 
>> >> > recogised
>> >> > as
>> >> > an internal or external command or program.
>> >> >
>> >> > Anybody has an idea what could have caused this? I am not a computer 
>> >> > wiz'
>> >> > and never work with anything else than MS office and explorer on this
>> >> > computer... when double clicking on 'networks and connections', I DO 
>> >> > get
>> >> > all
>> >> > the data which ipconfig should have given me
>> >> >
>> >> > Thanx for the help!
>> >>
>> >>
>> >> 
>> 
>> 
>>


Relevant Pages