Data is priceless to share the hard disk is not maliciously formatted

  
Method 1: Lock DOS command method
The basic principle of this method is to limit dangerous DOS commands to prevent illegal use of these commands to destroy hard disk data. The specific method is as follows:
Use “Notepad” Open the Autoexec file in the root directory of the C drive and add the following statement to it:
C:\\>DOSKEY FORMAT=Bad command or filename!
C:\\>DOSKEY del=Bad command or filename!
C:\\>DOSKEY deltree=Bad command or filename!
Method 2: Move external command method
Prevent hacker program or malicious code illegal format To modify or modify the hard disk data, you can rename or move the related DOS commands to other directories. You can change the file name back later when you format the hard disk. The specific method is to find the C:\\Windows\\format.exe file and Change the file name to format.txt or move to another directory. If you don't see the file extension in “My Computer", you can select “Tools →Folder Options →View”, which will be ; hide the extension of the known file type & rdquo; the previous hook is removed. In addition, you can use the Windows optimization master to lock the format command, but the basic principle is to rename the format command.
The above method is simple, but sometimes it can only prevent the gentleman from being able to prevent the villain. If someone else is booting from a CD or floppy disk, the same way to format the hard drive. Therefore, using the above method also needs to cooperate with the BIOS settings, set the boot order of the computer to boot only from the hard disk, and add a password to the BIOS, so that it can be foolproof.
Then save and exit. When you call the FORMAT, DEL, DELTREE, etc. commands, the Bad command or filename will be displayed and the operation will be rejected. If you need to format the hard disk in a special case, what should you do? You can enter the command: C:\\>DOSKEY FORMAT= (Enter), so you can freely operate the hard disk. .

Copyright © Windows knowledge All Rights Reserved