FAQ FAQ  Forum Search   Register Register  Login Login

Terminate a program

 Post Reply Post Reply
Author
  Topic Search Topic Search  Topic Options Topic Options
faisal7977 View Drop Down
I'm new here
I'm new here


Joined: 25 Sep 2009
Online Status: Offline
Posts: 13
  Quote faisal7977 Quote  Post ReplyReply bullet Topic: Terminate a program
    Posted: 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
Back to Top
jvierra View Drop Down
MVP
MVP


Joined: 31 Aug 2006
Location: United States
Online Status: Offline
Posts: 6846
  Quote jvierra Quote  Post ReplyReply bullet 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.
Back to Top
sunil_dgp View Drop Down
I'm new here
I'm new here


Joined: 01 Sep 2010
Online Status: Offline
Posts: 1
  Quote sunil_dgp Quote  Post ReplyReply bullet Posted: 01 Sep 2010 at 03:58
This is not possible with Cmd line.Try anything else.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down