Method 1: Locking the DOS command method
The basic principle of this method is to limit dangerous DOS commands and prevent illegal use of these commands. Hard drive data is destroyed. The specific method is as follows:
Open the Autoexec file in the root directory of the C drive with “Notepad” 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 programs or malicious code from illegally formatting and modifying hard disk data. You can rename or move related DOS commands to other directories. Change the file name back. The specific method is: find the C:\\Windows\\format.exe file, change its file name to format.txt or move it to another directory. If you don't see it in “My Computer” For the extension of the file, you can select “Tools →Folder Options →View”, and remove the hook from the extension of the known file type ” In addition, you can use the Windows optimization master to lock the format command, but the basic principle is to rename the format command.
Although the above method is simple, sometimes it can only prevent the gentleman from being able to prevent villains. 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. .
1. Restart your computer, then go back to Windows Vista, then
Windows security mode is to troubleshoot and repair after logging in to this mode when t
After installing the system, no network card driver can not con
Office workers in the Internet era are increasingly relying on e-mail for information exchange and e
How to open the Win7 clipboard?
Personalized Media Center for Windows 7 System
How to shield (disable) the mouse wheel under Win7
How to configure 5.1 channel for my win7 computer?
Easy backup mirroring with Win7
Win7 always shows how to detect the disk when booting
Microsoft advertising shows that in July 2010, the focus is on Windows 8
Win system can not modify the mac address how to do
Win7 prompts error 1067 countermeasures
What should I do if I install office2003 to prohibit installation?
Set a secure password for ten iron laws (1)
Win8 anytime, anywhere, touch the note application
Microsoft will stop Edge and IE11 RC4 password support in April
What should I do if Win8 has 0x800F081F error when installing .NET 3.5?
Linux system shutdown and restart command
How does Win8 set whether to display the most recently opened file or program
Three methods effectively solve the problem that MSN cannot be installed
Microsoft admits that the error 0×80240020 error code causes win7/8 to automatically upgrade win10