
Terminate a program |
Post Reply
|
| Author | |
faisal7977
I'm new here
Joined: 25 Sep 2009 Online Status: Offline Posts: 13 |
Quote Reply
Topic: Terminate a programPosted: 24 Nov 2009 at 22:56 |
|
i need to terminate a program using a script and i can do it with taskkill command in windows XP.
The program i need to close is a video recording software. when i close it manually or through taskkill command, it asks "This will stop all the recordings, Are you sure you want to close the program" | YES | | NO | Now i need to answer this box to Yes. I can forcefully do this using /F parameter but if i try to forcefully terminate the application either manually or through a bat file, recording file get corrupted. I must reply this box to YES in order to save the video recording file properly. can i do this using command line scripting or some other scripting language required? Edited by faisal7977 - 24 Nov 2009 at 23:04 |
|
![]() |
|
jvierra
MVP
Joined: 31 Aug 2006 Location: United States Online Status: Offline Posts: 6846 |
Quote Reply
Posted: 25 Nov 2009 at 08:07 |
|
You can't really do this with a command line program, Look into the WSH/VBScript "SendKeys" method.
|
|
![]() |
|
sunil_dgp
I'm new here
Joined: 01 Sep 2010 Online Status: Offline Posts: 1 |
Quote Reply
Posted: 01 Sep 2010 at 03:58 |
|
This is not possible with Cmd line.Try anything else.
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |