First, the background. I decided to play one of my old game Spiderman PC. But since its an old game, and my PC is too good (relatively) for it, some stages of the game gets glitched due to too high FPS. So i decided to use BandiCam to limit its FPS. It worked as expected.
Now my problem was everytime I want to play the game, I had to open Bandicam too. So I created this batch file.
@echo offStart "BandiCam" "C:\Program Files\Bandicam\bdcam.exe"PING 127.0.0.1 -n 5 >nulStart "SpiderMan" "E:\Games\Spider-Man\SpideyPC.exe"exit
It starts BandiCam, waits 5 seconds and then starts the game. Fine. But now, Bandicam remains open after closing the game. I want to close BandiCam with the game.
My question is, is there a way to close Bandicam as soon as I close the game, say check if the SPideyPC.exe is running, if not close BandiCam ?