command prompt dosn't work

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 4
    windows 7
    Thread Starter
       #11

    I did this:

    " Click on Start button and type "sysdm.cpl" without quotes in the Run or search box. Alternatively, click on "System" icon in control panel.

    In the window that opens up, Select the "Advanced" tab and then click "Environment Variables".
    In the system variables panel at the bottom, choose "Path", then click the "Edit" button.

    Edit the variable value. It is a long string separated by semicolons. Make sure the executable file’s location is one of the entries on this string. For commands like ipconfig, getmac etc., it is the system32 folder. If it is not there, just add the path entry of C:/windows/system32.

    Also make sure that the relevant exe file like ipconfig.exe or getmac.exe are actually present in the system32 folder."

    It didn't help me.


    I will look into some of your other suggestions when i got some more time. I will post what i figure out by then. Thanks
      My Computer


  2. Posts : 17
    Windows 7 Pro x64
       #12

    I was getting the same error: "'sfc' is not recognized as an internal or external, operable program or batch file." when I tried to run sfc in a Run as Administrator cmd prompt.
    Got it working by typing "sfc.exe /scannow" instead of "sfc /scannow".
    Not sure why my system needs the extension, maybe because I disabled the built-in search??
    I have Windows 7 Pro(64)
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #13

    when you add .exe to all commands it works?
    command:

    dir

    works?? (so without .exe)
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #14

    in command prompt
    Code:
    echo %pathext%
    post output
      My Computer


  5. Posts : 17
    Windows 7 Pro x64
       #15

    Ones that I have tried and NOT a complete list:
    Works without extensions:
    dir
    exit
    cd

    Needs the extensions:
    attrib.exe
    sfc.exe
    Chkdsk.exe

    [I'm not going to check 'format']
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #16

    RangerGord said:
    Ones that I have tried and NOT a complete list:
    Works without extensions:
    dir
    exit
    cd

    Needs the extensions:
    attrib.exe
    sfc.exe
    Chkdsk.exe

    [I'm not going to check 'format']
    in command prompt

    Code:
    echo %pathext%
    post output
      My Computer


  7. Posts : 17
    Windows 7 Pro x64
       #17

    .com;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
      My Computer


  8. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #18

    RangerGord said:
    .com;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
    My output:

    C:\Users\MyName>echo %pathext%
    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    Did you change it in purpose? I don't hope so
      My Computer


  9. Posts : 17
    Windows 7 Pro x64
       #19

    No I didn't change it. That is what came up.
    Maybe some malware??
      My Computer


  10. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #20

    RangerGord said:
    No I didn't change it. That is what came up.
    Maybe some malware??
    Open regedit.exe and search for key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

    In the right pane you see something named PATHEXT. Doubleclick on it

    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    Should be in it. So add
    .EXE;
    in the right place. Nou click OK and exit regedit. Now logoff and logon. Now it should work. Does it? If not show me echo %pathext% output again
      My Computer


 
Page 2 of 3 FirstFirst 123 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 21:01.
Find Us