Disable the specified doscommand
The basic principle of this method is to restrict dangerous DOS commands to prevent unauthorized use of these commands to destroy hard disk data. The specific method is as follows:
Use NotePad to open the Autoexec file under the C root directory and add the following statement:
C: \> doskey format = Bad command or filename!
C: \> DOSKEY del = Bad command or filename!
C: \> DOSKEY deltree = Bad command or filename!
Then, save the disk and exit. In this way, when you call commands such as FORMAT, DEL, and DELTREE, the system displays Bad command or filename and rejects the operation. In some special circumstances, if you need to format the hard disk yourself, what should you do? You can enter the command: C :\> doskey format = (Press ENTER), so that you can operate the hard disk freely.
Author: Technologicalsociety"