answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When making a batch file how can one disable the close box?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you open a separate program with Batch files and then close that program with Batch?

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.


Why does your batch file close every time?

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.


Why does this batch file closes whenever you type in a command that has a symbol or space in it how do you fix this?

A batch file will close when it reaches the last line of code or an error.


How do you make a batch file that will disable a computer?

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


Which keys are used to terminate a batch file?

The Ctrl + C combination. You an also use the Ctrl + Alt + Del combination, start Task Manager, and close the batch file from there.


Batch file to edit registry key?

Hmm ... making a virus here?


How can I hide the taskbar permanentely by using batch file?

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.


What is the extension of batch file?

the extension of a batch file is ".bat"


What is ending or close program code for batch file of Notepad?

kjio ^ couldn't you be more creative? xD


Can a file with a weird extension but with batch file code be read using another batch file?

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


What is a batch file?

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.


How do you extract code from batch file?

You can just open the batch file with notepad and look at the code