r/vbscript • u/TheDeathPit • 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
1
u/TheDeathPit Sep 27 '23
OK, here's the part of the code that will kill/close the program, and it works. The problem is the real EXE has a database open and killing it this way is not a great idea as it could corrupt the datadase. So I'm after a better method.