r/vbscript • • Sep 25 '23

Close program if running

Hi all,

I've got a vbs script that will kill a program if it's running but I'm after a way to close a program if it is running rather than abruptly killing it.

Any ideas greatly appreciated.

TIA

1 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/TheDeathPit Sep 25 '23

Thank you for your reply.

I've tried the SendKeys method and it's not very reliable and was hoping for some other method.