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: Cmd.exe doesn't work when opened through Windows search bar

13 Apr 2016   #1
Schw1341

Windows 7 Professional 64bit
 
 
Cmd.exe doesn't work when opened through Windows search bar

This is probably something that has a really simple fix, but I have no idea why it's happening. When i type cmd.exe into the Windows search bar and open it, everything I type in (like ipconfig) doesn't work, and it gives me the message "'ipconfig' is not recognized as an internal or external command, operable program or batch file." It should also be noted that the command line that I'm typing into says: C:\Users\Grant>

On the other hand, if I search cmd.exe, right click on it, click on Open file location and then double click cmd.exe in the System32 folder, it will open and if I type in things like ipconfig it will work just fine. The command line this time says: C:\Windows\System32>

Why is it that I can't just open it up the short way and do it?


My System SpecsSystem Spec
.
13 Apr 2016   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

You have to run as admin


Attached Images
Cmd.exe doesn't work when opened through Windows search bar-2016-04-13_1608.png 
My System SpecsSystem Spec
13 Apr 2016   #3
Schw1341

Windows 7 Professional 64bit
 
 

The profile I'm logged in under is the administrator. Why do I have to choose to run it as the administrator? Shouldn't the computer know that already?
My System SpecsSystem Spec
.

13 Apr 2016   #4
kkehoe

Windows 7
 
 

Does your PATH variable include C:\WINDOWS\SYSTEM32 or the equivalent path to your O/S installation?

Kevin
My System SpecsSystem Spec
13 Apr 2016   #5
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Quote   Quote: Originally Posted by Schw1341 View Post
The profile I'm logged in under is the administrator. Why do I have to choose to run it as the administrator? Shouldn't the computer know that already?
You are not THAT admin. Just do as I suggested.
My System SpecsSystem Spec
14 Apr 2016   #6
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hi Schw1341,

As Kkehoe has caught on, your PATH environment variable may be missing or damaged.

In an Elevated Command Prompt, run the below command. Then open a new CMD instance, and try Ipconfig.
Code:
setx /m Path "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\\"
My System SpecsSystem Spec
Reply

 Cmd.exe doesn't work when opened through Windows search bar




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 Search Doesn’t Work Properly – Yet Again!
I realise this subject has just about been done to death, e.g. by Lithium on 07-06-2011, but I just have to let off steam somehow - it really doesn't seem to work! Let me explain. I recently acquired an HP Pavilion dv7 laptop computer, with Windows 7 64-bit Home Premium pre-installed. ...
General Discussion
Search doesn't work!
I have tried to solve this problem since I first got Win 7 without success. Search simply does not work. Answers on-line say click on start and type in the search box, but when I do, I get nothing. Same thing with Explorer. Typing in the search box yields nothing. None of the on-line answers I have...
General Discussion
Indexing doesn't work. Windows search service stopped
My indexing stopped. When I checked "Windows Search" service is in auto startup mode but it wasn't running. When I tried to manually start, it gave me "Error 2: The system cannot find the file specified." message. Please help. Without an ability to search my computer I am pretty much lost now.
General Discussion
Win 7 search doesn't work
My Win 7 Search yields only generic folders. Clicking on them gives a security window citing settings in internet security as limiting results display. What the heck does internet security have to do with a desktop search? I also suddenly have UAC markers on some desktop icons that weren't there...
System Security
Search bar wont doesn't work
HI all, my windows search bar is not working at all. It will show drives if i type in "c:" - it will show the folders in the drive, but anything else it says nothing found. example typing in winver= nothing found. Even typing in just a letter= nothing found However, when I log in as...
General Discussion
List.exe multifile search doesn't work
The resource kit command line utility list.exe works OK in Windows 7, except multifile search doesn't work. The command to invoke multifile search is F4; apparently list.exe running under Win7 doesn't properly process function keys. Tested with 2003 version of list.exe (I think that's the latest...
Software


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 05:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App