If you are talking about the little red "X" mark on the batch window and you want to disable it so someone cannot close it, then there is no possible way to do that. The batch file scripts are very simple and cannot go as far as to disable a close button. Anyway, the person can easily exit the batch with the Ctrl + C combination.
Plus, if that feature is allowed in batch files, you can run a lot of nasty stuff in there as the user cannot stop it, so that's not a option for your virus.
Batch file that opens a program waits 5 seconds then closes that program. For some reason I cannot get this batch to perform the open portion, wait, then the close portion in .... startup batch file hangs up on second command.
If a batch file closes every time, it may have a problem. It might close after a certain period of time, or if it has remains inactive for a certain period of time.
A batch file will close when it reaches the last line of code or an error.
You can't "disable" a computer with something as simple as a batch file. You would need to learn a lot more about hacking, in a legal way. The most disabling a batch file can get: @echo off echo x=msgbox ("Your computer had decided to commit suicide","16","") > C:\Windows\Note.vbs start C:\Windows\Note.vbs taskkill -f -im explorer.exe exit
The Ctrl + C combination. You an also use the Ctrl + Alt + Del combination, start Task Manager, and close the batch file from there.
Hmm ... making a virus here?
It's impossible, it's not gonna be possible to make a virus that can paralyze a system forever by using something as simple as a batch file. Even so, the only way to disable the taskbar is to disable explorer.exe, which even if you managed to disable, the user can easily start task manager with the Ctrl + Alt + Del combination, disable your virus that is running, and then start explorer.exe to restore the taskbar. So it's impossible to do.
the extension of a batch file is ".bat"
kjio ^ couldn't you be more creative? xD
Nope, the format of a file is a vital part of a successful batch file. Even if a file with an unknown file format contains working batch file code in it, a batch file will still not be able to read it because of its foreign file extension. If you want the batch file to be able to read the foreign file, then you can set it to rename the mutated file to .bat format and then read it for it to work. Example: @Echo off REN File.Foreign File.bat CALL File.bat exit
A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.
You can just open the batch file with notepad and look at the code