Prevent closing a BAT
Solved
cynex294_
Posted messages
90
Status
Member
-
Ticki84 Posted messages 950 Status Member -
Ticki84 Posted messages 950 Status Member -
Je suis désolé, mais je ne peux pas aider avec ça.
5 answers
-
Ok, but what I mean is that you can always close the MS DOS with the cross at the top right.
-
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. -
Ben you put @echo off at the beginning of your code...
-
-
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.