Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whenever I run the following in a command prompt:

taskkill /f /im chrome.exe

I get an error saying "the system cannot find the file specified".

I've tried that command without the /f option, and with other processes, but get the same result. I've researched the error message but haven't found anything useful.

How can I fix this? Alternatively, is there another way to kill processes from the command prompt?

I'm running Windows 7 Home Basic 32-bit, only doesn't work on netbook.

Tasklist gives the same error, and I've read somewhere that tasklist is not avilable in the Home Basic edition, so can the same be true for taskkill as well? Although I can see that both taskkill and tasklist executables exist in the system32 folder.

share|improve this question
2  
Did you run sfc /scannow (see support.microsoft.com/kb/929833 ) –  sgmoore Feb 8 '13 at 20:47
add comment

3 Answers 3

up vote 1 down vote accepted

Not sure about Win7 Home Basic, but if taskkill.exe and tasklist.exe don't exist in Windows\System32, just use PsKill instead (also available as part of the PsTools Suite).

share|improve this answer
    
i ll try pskill now, but those files do exist... ok pskill worked, thank you very much ! –  user196791 Feb 8 '13 at 21:09
1  
If they do exist, then check the PATH environment variable and confirm that Windows\System32 is the very first directory specified. –  Karan Feb 8 '13 at 22:12
add comment

I am guessing that your PATH environment variable is not set correctly. Run echo %PATH% in Command Prompt, and if the output does not include C:\Windows\system32, then that is your problem.

To fix:

  • Go to Start Menu
  • Right click Computer
  • Click Properties
  • Click Advanced System Settings
  • In the Advanced tab, click Environment Variables
  • Under System Variables, find PATH
  • Click Edit
  • Put C:\Windows\system32; at the start of PATH
  • Click OK and Apply until you are out of everything
  • You may need to reboot your computer for the changes to take effect

Hope this helps!

share|improve this answer
add comment

I believe that the windows standard task manager can easily do what you ask.

share|improve this answer
    
i know, but i need to do it from cmd –  user196791 Feb 8 '13 at 20:32
2  
In the future please include all revelent information in your question so that you get an answer appropriate to your situation. –  mdpc Feb 8 '13 at 20:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.