Ending a program
Moderator: DosItHelp
-
- Posts: 8
- Joined: 29 May 2011 08:34
Ending a program
Is there a way to end a program with batch? Like if I wanted a batch program to stop Windows Media Player, is this possible?
Re: Ending a program
that is very easy i think taskkill will kill the process of the program
example
this code will end all media player instance
example
Code: Select all
taskkill /F /IM wmplayer.exe
this code will end all media player instance
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: Ending a program
taskill will not work for certain process every time. Sometimes it will fail.
You can also use wmic
You can also use wmic
Code: Select all
wmic process where name="services.exe" call terminate