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 dosn't work

02 May 2010   #11
baudits

windows 7
 
 

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 System SpecsSystem Spec
.
08 May 2012   #12
RangerGord

Windows 7 Pro x64
 
 

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 System SpecsSystem Spec
08 May 2012   #13
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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

dir

works?? (so without .exe)
My System SpecsSystem Spec
.

08 May 2012   #14
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

in command prompt
Code:
echo %pathext%
post output
My System SpecsSystem Spec
08 May 2012   #15
RangerGord

Windows 7 Pro x64
 
 

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 System SpecsSystem Spec
08 May 2012   #16
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by RangerGord View Post
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 System SpecsSystem Spec
08 May 2012   #17
RangerGord

Windows 7 Pro x64
 
 

.com;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
My System SpecsSystem Spec
08 May 2012   #18
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by RangerGord View Post
.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 System SpecsSystem Spec
08 May 2012   #19
RangerGord

Windows 7 Pro x64
 
 

No I didn't change it. That is what came up.
Maybe some malware??
My System SpecsSystem Spec
08 May 2012   #20
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by RangerGord View Post
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 System SpecsSystem Spec
Reply

 command prompt dosn't work




Thread Tools




Similar help and support threads
Thread Forum
net view in Command Prompt does not work
When I try to run net view in a Command Prompt window on my Windows 7 Pro X64, I get this error: >net view The service has not been started. More help is available by typing NET HELPMSG 2184.I have spent days over the last year or two looking for: 1. What service is not started (why...
Network & Sharing
Command Prompt Color - Registry setting doesn't work for this combo.
Here's an anomaly. In my W7 Ultimate Administrator Command Prompt, I'm trying to set the colors as follows: Screen Background: 192, 192, 192 Screen Text: 0, 0, 255 You can see the selection area by right-clicking the Title Bar (or the little black box at top left) and clicking Properties...
General Discussion
Windows 7 logon Locked out Command Prompt Wont work
This is for my sister,I hope someone can help us out... her computer is a windows 7.It shut down one day while she was at work.Message said, computer shut down improperly, so she rebooted it.. it started in safemode. wouldnt go any where else... so we tried the f8 and command prompt and it...
General Discussion
How does command prompt work?
any help, I have looked in the internet but the tutorials there are no good, HELP!
General Discussion
PES 2009 dosn't work
why i can't run PES 2009 in OS Windows 7.. anyone can get solve?? it always stop working when I try to play this game.. less or more the previews : anyone can help me???
Gaming


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 12:10.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App