All you can do is end the batch file but it depends on where it will quit. All you have to do see use the FindWindow API and sent that batch file window the kill signal.