Command Prompt problem

Page 1 of 2 12 LastLast

  1. Posts : 129
    Windows Seven 32Bit
       #1

    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 Computer


  2. ryo
    Posts : 1,953
    windows 7
       #2

    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?
    Last edited by ryo; 01 Jul 2010 at 23:14. Reason: add information
      My Computer


  3. Posts : 474
    Windows 7 Enterprise x64 SP1
       #3

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

    does that work?
      My Computer


  4. Posts : 17,796
    Windows 10, Home Clean Install
       #4

    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 Computer


  5. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #5

    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 Computer


  6. Posts : 129
    Windows Seven 32Bit
    Thread Starter
       #6

    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 Computer


  7. Posts : 1,261
    Windows 7 Professional 32-bit SP1
       #7

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

    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 Computer


  8. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #8

    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 Computer


  9. Posts : 129
    Windows Seven 32Bit
    Thread Starter
       #9

    Dear Sir,

    I copied your code in exact location but same results.
      My Computer


  10. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 06:12.
Find Us