• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Sign in to follow this  

How close an application with a .cmd ?

Recommended Posts

NeHoMaR    1

How close an application with a .cmd ? I wanna run the .cmd and do a "brutal" close of application, similar to use Task Manager and end process :p Is that possible?

Share this post


Link to post
Share on other sites
+BudMan    3,544

the command your looking for is;

C:\>taskkill /?

TASKKILL [/s system [/u username [/P [password]]]]

{ [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]

Description:

This command line tool can be used to end one or more processes.

Processes can be killed by the process id or image name.

Or you could grab pskill (pstools) from http://www.sysinternals.com and through it in your path.

Share this post


Link to post
Share on other sites
BigCheese    9

taskkill /f /im notepad.exe

just change notepad.exe to whatever task you want to kill.

Share this post


Link to post
Share on other sites
NeHoMaR    1

Yeah, taskkill, thanks :yes:

I remember the MS-DOS commands, but I don't know enough about "new" WinNT, 2k, XP commands. WinXP is too easy, normally nobody need commands now :pinch:

Edit: The problem was that when I type "help" command, "taskkill" is not showed in list :o How many commands are not showed in that list?

Edited by NeHoMaR

Share this post


Link to post
Share on other sites
+BudMan    3,544
Edit: The problem was that when I type "help" command, "taskkill" is not showed in list :o How many commands are not showed in that list?

585953888[/snapback]

Did you ever think to RTFM? Everything you could ever want to know about windows is quite clearly documented - if you would take the time to look over it ;)

http://www.microsoft.com/resources/documen...-us/ntcmds.mspx

post-14624-1116730314_thumb.jpg

Share this post


Link to post
Share on other sites
NeHoMaR    1

Yeah :punk: Maybe Microsoft doesn't like show advanced and/or dangerous commands with "help" command :/

Share this post


Link to post
Share on other sites
+BudMan    3,544
Yeah :punk: Maybe Microsoft doesn't like show advanced and/or dangerous commands with "help" command :/

585955755[/snapback]

Its not that - the help command just gives help for non network system commands.. there are quite a few other command line "tools" that are just not included in that.

Just because it's a command line tool - does not make it a system command, etc... They are NOT trying to hide anything.. If you open "HELP", look under "What's New" its right there under "See Also" --> "Tools"

Yeah their hiding it ;)

post-14624-1116850659_thumb.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.