How Do I Close One Program When The Other Closes?

ShadyOrb09

Reputable
Feb 11, 2015
253
0
4,810
Hello, I'm not really sure how to explain this, but I'll try my best.
Basically I just want to play BioShock 2, but it's far more broken then BioShock so I've been screwing around with fixes. After I managed to fix the game I ended up with 2 programs that needed to be launched in order to fix BioShock 2.

Those programs are BioShock 2 itself, and a FOV fix, so I made a batch file to open the FOV fix when I run BioShock 2 through Steam.
Now that seems to be all fine and dandy but all I want now is to close the FOV fix when I close BioShock 2.

Here is my batch file:

{
@echo off
cd "F:\Steam Library\steamapps\common\BioShock 2\SP\Builds\Binaries"
start Bioshock2

cd "F:\Steam Library\steamapps\common\BioShock 2\SP\Builds\Binaries"
start FlawlessWidescreen

exit
}

Would any of you know what to do next?

I know this might seem a bit extreme for something so simple but I like automation :)
 

ShadyOrb09

Reputable
Feb 11, 2015
253
0
4,810
Powershell is a .exe
Options to run scripts
https://technet.microsoft.com/en-us/magazine/ff629472.aspx



 

ShadyOrb09

Reputable
Feb 11, 2015
253
0
4,810


I hope you're joking.
 
what do you mean ? just go to ' FOV exe or whaty ever its under and end task and it closes you dont close everything out just the program running you want closed

no jokes about it easy as pie when you clos any program that's all its doing anyway ending the process I do it several times a day with old games that start run,dll exe to start the games but as soon as the game is over I close the game as normal but I have to use task manager to close or shut down rundll , no big deal

http://www.bleepingcomputer.com/tutorials/close-a-program-using-task-manager/

good luck
 
I think he wanted to automate it using the old DOS batch file commands.



 
ya, ok may need to see why its not doing as its notes say it should ?

Notes

Flawless Widescreen can be started and closed at any time while Bioshock 2 is running and it will not cause any problems with the game.

so seems he should not need to be doing any of this ?? they don't offer much at there site

https://www.flawlesswidescreen.org/

well its not a ''fix'' as you called it but a hack so not from the developer as a game patch I guess you down to hacking the hack to make it work as you expect ?? that's the risk you take with 3ed party programs as such just run it and manually turn it off /close it from task manager that's what 4 clicks of the mouse and maybe 10 sec. at most ?? heck of a lot less effort and hassle that all that your doing now

anyway good luck
 

ShadyOrb09

Reputable
Feb 11, 2015
253
0
4,810


That's not exactly the answer I was looking for. It's much less of a generic fix and more of a programming automation fix. I ended up just making my own console application in C#. It checks for updates, and when BioShock 2 closes it will close the other programs needed to play it.