Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Command Prompt problem


01 Jul 2010   #1

Windows Seven 32Bit
 
 
Command Prompt problem

Dear Sir,

Click Start menu>click Run> enter CMD> type "ipconfig" then error appear as

C:\>ipconfig
'ipconfig' is not recognized as an internal or external command,
operable program or batch file.

Please tell me why????


My System SpecsSystem Spec
.

01 Jul 2010   #2
ryo

 
 

if you can open cmd prompt,that's not means your run problem, if you can type help or dir and that's appear..is mean your cmd prompt run well. but it's seems just you type ipconfig then appear error like that.
did you have network adapter installed in your system?? and did you already plug your network cable?
My System SpecsSystem Spec
01 Jul 2010   #3

Windows 7 Enterprise x64 SP1
 
 

try typing: c:\windows\system32\ipconfig /all

does that work?
My System SpecsSystem Spec
.


01 Jul 2010   #4

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

Try it this way

Elevated Command Prompt

You probably do not need the elevated command prompt a regular one will do, but just to be sure that you did it correctly.
My System SpecsSystem Spec
01 Jul 2010   #5

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Open the Command Prompt and type:

set <enter>

and post it here. I want to see if your path is correct or not. That is most likely your problem.
My System SpecsSystem Spec
02 Jul 2010   #6

Windows Seven 32Bit
 
 

Dear Sir,

Please check your requested data.

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Arshad Mahmood>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Arshad Mahmood\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ARSHAD MAHMOOD
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Arshad Mahmood
LOCALAPPDATA=C:\Users\Arshad Mahmood\AppData\Local
LOGONSERVER=\\ARSHAD MAHMOOD
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\PC Connectivity Solution\;C:\Program Files\Rockwell Softwa
re\RSCommon;C:\Program Files\Rockwell Software\RSView;C:\Program Files\Rockwell
Software\RDM;C:\Program Files\Common Files\Microsoft Shared\Windows Live
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ARSHAD~1\AppData\Local\Temp
TMP=C:\Users\ARSHAD~1\AppData\Local\Temp
USERDOMAIN=ARSHAD MAHMOOD
USERNAME=Arshad Mahmood
USERPROFILE=C:\Users\Arshad Mahmood
windir=C:\Windows

C:\Users\Arshad Mahmood>
My System SpecsSystem Spec
02 Jul 2010   #7

Windows 7 Ultimate x64
 
 

The problem you're having is that "C:\Windows" and "C:\Windows\system32" are not in your PATH:

Quote:
Path=C:\Program Files\PC Connectivity Solution\;C:\Program Files\Rockwell Softwa
re\RSCommon;C:\Program Files\Rockwell Software\RSView;C:\Program Files\Rockwell
Software\RDM;C:\Program Files\Common Files\Microsoft Shared\Windows Live

Try this:
  1. Close any CMD windows
  2. Click the Start Button
  3. Right-click "Computer", select "Properties"
  4. In the left pane, click "Advanced system Settings"
  5. In the "Advanced" tabe, click "Environment Variables"
  6. In the "System variables" list, find and select "Path", then click "Edit"
  7. Add "%SystemRoot%\system32;%SystemRoot%;" (without quotes) to the beginning of the variable value. Be careful not to delete anything;
  8. Click OK
  9. Click OK
  10. Click OK
  11. Open a CMD window and try again
My System SpecsSystem Spec
02 Jul 2010   #8

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

No offence Dzomlija, but i guess this would be a easier way to add to the PATH

Code:
SET PATH=%SystemRoot%\system32;%SystemRoot%;%PATH%
instead of typing the whole path value again

or

  • From the desktop, right-click My Computer and click Properties.
  • In the System Properties window, click on the Advanced tab.
  • In the Advanced section, click the Environment Variables button.
  • Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
My System SpecsSystem Spec
02 Jul 2010   #9

Windows Seven 32Bit
 
 

Dear Sir,

I copied your code in exact location but same results.
My System SpecsSystem Spec
02 Jul 2010   #10

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

Try the second method I posted

  • From the desktop, right-click My Computer and click Properties.
  • In the System Properties window, click on the Advanced tab.
  • In the Advanced section, click the Environment Variables button.
  • Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button.
  • Add
    %SystemRoot%\system32;%SystemRoot%;to the beginning. Each different directory is separated with a semicolon as shown.
  • Reboot the system and try running ipconfig
My System SpecsSystem Spec
Reply

 Command Prompt problem




Thread Tools



Similar help and support threads for2: Command Prompt problem
Thread Forum
Help needed executing command prompt command General Discussion
command prompt General Discussion
Command prompt - open problem General Discussion
Run administrative command prompt from command prompt General Discussion
Command Prompt Shutdown problem Network & Sharing
Windows 7 weird command prompt problem General Discussion
Command Prompt command <ipconfig> not working Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:42 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33