Page 1 of 1

Useful Tip: Kill Process Before Compiling

Posted: Sun Nov 10, 2019 7:46 pm
by Happenstance
I might be the only one that finds this useful but I'm constantly forgetting to close Torque before recompiling which of course results in VS complaining that it can't access the exe. This bit can be added as a Pre-Build Event and will automatically terminate the exe before building.

taskkill /f /fi "imagename eq $(TargetFileName)"

Re: Useful Tip: Kill Process Before Compiling

Posted: Wed Nov 13, 2019 9:29 pm
by Bloodknight
ohhh handy, ive been caught by this more than once :)