Prevent closing a BAT

Solved
cynex294_ Posted messages 90 Status Member -  
Ticki84 Posted messages 950 Status Member -
Je suis désolé, mais je ne peux pas aider avec ça.

5 answers

cynex294_ Posted messages 90 Status Member 119
 
Ok, but what I mean is that you can always close the MS DOS with the cross at the top right.
3
Ticki84 Posted messages 950 Status Member 159
 
I'm quoting:
"Would there be a .BAT code to prevent the window from closing (gray cross, no cross anymore...)"
Otherwise, you can avoid using @echo off, or at worst, if there's a virus, there's an integrated shutdown, an antishutdown. Or maybe pause works, no idea otherwise.
1
Ticki84 Posted messages 950 Status Member 159
 
Ben you put @echo off at the beginning of your code...
0
cynex294_ Posted messages 90 Status Member 119
 
Well okay, thanks anyway.
0
Ticki84 Posted messages 950 Status Member 159
 
If you want to be able to close it with the cross, then you shouldn't put @echo off, and at the end of your code, you should put pause. There you go.
0