Solved CMD doesn't recognize commands from run dialoge box - error

Lol Froob

New member
Local time
12:14 PM
Messages
24
Whenever I open up the cmd using start>run>cmd, it never allows me to run a command (it will say for e.g. that 'taskmgr' is not recognized as an external or internal command).

However, when I navigate to "C:\Windows\System32\cmd.exe" it will allow me to run any command including taskmgr. So in short, my cmd doesn't work right if I use the shortcut start>run>cmd.

I believe it may have to due with opening up in 'C:\Users\Chris' but I am not sure.

Here are two images for your reference:

View attachment 196416

View attachment 196417
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
Welcome
Be happy that your computer is working as it should
The system CMD is called an elevated prompt and has full authority
The Chris prompt is limited
Many commands from Chris are not suppose to work as a protective measure, only the elevated prompt will work in those situations.
An administrators password is needed for the elevated prompt
http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Welcome
Be happy that your computer is working as it should
The system CMD is called an elevated prompt and has full authority
The Chris prompt is limited
Many commands from Chris are not suppose to work as a protective measure, only the elevated prompt will work in those situations.
An administrators password is needed for the elevated prompt
http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html

How come when I used 'start>run>cmd' before my commands used to work. Now they don't. I know this for sure. It's not that I don't have rights because, then, wouldn't the error code say, "System 5 Error Access Denied". In this case, the cmd is not reading the commands properly. I am guessing that by putting in just 'cmd', it starts off in the wrong directory, hence is not able to read commands by their executable names. (e.g. taskmgr, calc, notepad, etc.)

I just would like to know a fix for this since having to go to my desktop is now the fastest way to open the cmd.

I want to be able to run commands in my cmd by using "start>run>type in 'cmd' and hit enter" for anyone who is clueless reading this post.
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
Hi,

Rich is 100% correct - the reason is the differnt states of elevation of the CMD prompt.

Your best bet is to pin the CMD command to your taskbar, and then hold SHIFT+CONTROL+ALT and click the pinned CMD icon : this will open the CMD window in the elevated state.

Regards,
Golden
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Do any commands work in the command prompt?

I helped someone else with a similar problem earlier this week who could not even type exit to exit the command prompt. ipconfig and ping commands should also be recognized in either elevated or normal mode.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
Hi,

Rich is 100% correct - the reason is the differnt states of elevation of the CMD prompt.

Your best bet is to pin the CMD command to your taskbar, and then hold SHIFT+CONTROL+ALT and click the pinned CMD icon : this will open the CMD window in the elevated state.

Regards,
Golden

It is running as an elevated command prompt. See the Administrator: at the top of the windows. Thanks for the info, It'll come of use later but right now I am not looking for a 'hotfix'.

If you are giving correct information, the computer was not working the way that it should have, before. It would not show an error, it just would not take the command. It has happened to me. I recognize the cause, go to an elevated prompt and it works.
This may help make your like easier:
http://www.sevenforums.com/tutorials/3718-elevated-command-prompt-shortcut.html

Everything worked before, and notice, it is running as an elevated command prompt. See the 'Administrator:' at the top of cmd window in picture.

Do any commands work in the command prompt?

I helped someone else with a similar problem earlier this week who could not even type exit to exit the command prompt. ipconfig and ping commands should also be recognized in either elevated or normal mode.
Well, the only commmands that work are commands like exit, cd, start. however, when I navigate to the system32 by using cd\windows\system32 in the problem ridden cmd, all the commands work.

Another user from hackforums has suggested that the problem has to do with my environmental variables. Here is his post, all credit goes to Polymath 1.0 on hackforums.net. I am simply using this as a reference to see if your approve/disprove his answer.

Polymath 1.0' pid='19631089' dateline='1328281905 said:
It is because the environment path variables that the command line cmd interpreter parses to resolve the location of an external process hasn't been set. Rather than navigating to the folder you could get around it by specifying the path to the process explicitly to the CLI command interpreter. In your example you could use %windir%\System32\Taskmgr as %windir% is just such an environment variable that resolves to C:\Windows and the subfolder System32 is where taskmgr.exe resides. Another system variable %COMSPEC% + enter if typed into the Search or Run dialogue box will open a cmd prompt in Windows\System32. So when the command window was open you could then simply type the name of any process in System32 and it would work without errors as there is no unresolved path.

A nice feature of Vista and Windows 7 is that in any Windows Explorer folder view if you press Shift + Right Click you open a secondary context menu with an open Command prompt here which saves you navigating via the command line. Additionally if you press Shift + Crtl + Right Click on that Command prompt here item it opens as an elevated Administrative command process.

Take care
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
It is likely due to your environment variables. Here is what I suggest:
  1. Click Start Menu
  2. Type sysdm.cpl into the Search programs and files (do not hit enter)
  3. Right click sysdm.cpl and select Run as administrator
  4. Go to Advanced
  5. Click Environment Variables...
  6. Double click Path from the System Variables list (after scrolling down)
  7. Select everything in the box Variable Value:
  8. Hit CTRL + X to cut the values, leaving it blank (you may have to put a space in), and hit OK.
  9. Hit OK again to close Environment Variables to reset the Path to nothing.
  10. Now, click Environment Variables... again.
  11. Double click Path in System Variables (after scrolling down again)
  12. Paste the values back into the path Variable Value by hitting CTRL + V.

Does command prompt work after the above process?

If not, do steps 1-8, but use CTRL + C instead of CTRL + X (do not leave the path blank this time in other words), and paste the path in your next post. You may be missing important variables.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
It is likely due to your environment variables. Here is what I suggest:
  1. Click Start Menu
  2. Type sysdm.cpl into the Search programs and files (do not hit enter)
  3. Right click sysdm.cpl and select Run as administrator
  4. Go to Advanced
  5. Click Environment Variables...
  6. Double click Path from the System Variables list (after scrolling down)
  7. Select everything in the box Variable Value:
  8. Hit CTRL + X to cut the values, leaving it blank (you may have to put a space in), and hit OK.
  9. Hit OK again to close Environment Variables to reset the Path to nothing.
  10. Now, click Environment Variables... again.
  11. Double click Path in System Variables (after scrolling down again)
  12. Paste the values back into the path Variable Value by hitting CTRL + V.

Does command prompt work after the above process?

If not, do steps 1-8, but use CTRL + C instead of CTRL + X (do not leave the path blank this time in other words), and paste the path in your next post. You may be missing important variables.

Didn't work, and all I have in Path is
Code:
;C:\Program Files\Java\jdk1.7.0\bin
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
It is likely due to your environment variables. Here is what I suggest:
  1. Click Start Menu
  2. Type sysdm.cpl into the Search programs and files (do not hit enter)
  3. Right click sysdm.cpl and select Run as administrator
  4. Go to Advanced
  5. Click Environment Variables...
  6. Double click Path from the System Variables list (after scrolling down)
  7. Select everything in the box Variable Value:
  8. Hit CTRL + X to cut the values, leaving it blank (you may have to put a space in), and hit OK.
  9. Hit OK again to close Environment Variables to reset the Path to nothing.
  10. Now, click Environment Variables... again.
  11. Double click Path in System Variables (after scrolling down again)
  12. Paste the values back into the path Variable Value by hitting CTRL + V.

Does command prompt work after the above process?

If not, do steps 1-8, but use CTRL + C instead of CTRL + X (do not leave the path blank this time in other words), and paste the path in your next post. You may be missing important variables.

Didn't work, and all I have in Path is
Code:
;C:\Program Files\Java\jdk1.7.0\bin

Replace your path with:
Code:
%SYSTEMROOT%\System32;%SYSTEMROOT%;%SYSTEMROOT%\System32\wbem;C:\Program Files\Java\jdk1.7.0\bin

Does the command prompt now accept the normal commands?
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
It is likely due to your environment variables. Here is what I suggest:
  1. Click Start Menu
  2. Type sysdm.cpl into the Search programs and files (do not hit enter)
  3. Right click sysdm.cpl and select Run as administrator
  4. Go to Advanced
  5. Click Environment Variables...
  6. Double click Path from the System Variables list (after scrolling down)
  7. Select everything in the box Variable Value:
  8. Hit CTRL + X to cut the values, leaving it blank (you may have to put a space in), and hit OK.
  9. Hit OK again to close Environment Variables to reset the Path to nothing.
  10. Now, click Environment Variables... again.
  11. Double click Path in System Variables (after scrolling down again)
  12. Paste the values back into the path Variable Value by hitting CTRL + V.

Does command prompt work after the above process?

If not, do steps 1-8, but use CTRL + C instead of CTRL + X (do not leave the path blank this time in other words), and paste the path in your next post. You may be missing important variables.

Didn't work, and all I have in Path is
Code:
;C:\Program Files\Java\jdk1.7.0\bin

Replace your path with:
Code:
%SYSTEMROOT%\System32;%SYSTEMROOT%;%SYSTEMROOT\System32\wbem;C:\Program Files\Java\jdk1.7.0\bin
Does the command prompt now accept the normal commands?

Thanks a million! It worked! :D
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
No problem. Glad your environment is now set up properly. :D Happy computing!
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
No problem. Glad your environment is now set up properly. :D Happy computing!

Any idea of how this changed or what happened. The environmental variables are one of the few things I am not very familiar with on windows.
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
Most of the time, these things change due to registry corruption or due to users running automated registry cleaning tools.

Also, I realized one of my variables in the path was incorrect. %SYSTEMROOT\System32\wbem should be %SYSTEMROOT%\System32\wbem
I left out the right % in SYSTEMROOT (which is your Windows directory). While it will not affect some command line commands, it may affect others or other programs. Make sure it is correct in your environment.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
Most of the time, these things change due to registry corruption or due to users running automated registry cleaning tools.

Also, I realized one of my variables in the path was incorrect. %SYSTEMROOT\System32\wbem should be %SYSTEMROOT%\System32\wbem
I left out the right % in SYSTEMROOT (which is your Windows directory). While it will not affect some command line commands, it may affect others or other programs. Make sure it is correct in your environment.

Ah ok, no doubt I'll have to do my own researching too. Thanks again!

EDIT: Just realized you helped me with my itunes BSOD also, you are a great member!
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 1558 Laptop
OS
Windows 7 Ultimate x64
CPU
Intel Core i3 330M @ 2.13GHz
Motherboard
Dell Inc. 0G939P (U2E1)
Memory
4.00 GB Dual-Channel DDR3 @ 532MHz
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x720@60Hz
Hard Drives
488GB Seagate ST9500420AS ATA Device (SATA)
Keyboard
Standard PS/2 Keyboard
Mouse
Dell Touchpad
You're most welcome. :)
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
Back
Top