Method 1: Locking the 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 drive data. 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. .
There are three situations in which the desktop is not displayed. One is that the desktop icon is no
The NumLock key on the Win7 keypad is often used by everyone. It is mainly used to switch the digita
The Desktop Cleanup Wizard helps users clean up shortcuts that are not used on the
First, wait patiently for a while When you encounter the Win7 update patch to fix the vulnerability,
What is the 2345explorer.exe process of Win7 system
What is the reason for the difference between Win7 installation memory and available memory?
Win7 system Application Data can not access how to do
Win7 how to set the height of the taskbar
Win7 system default font restore method
Win7 system can not open DMP file graphic tutorial
Win7 system sleep when the network breaks how to do
Win7 32-bit and 64-bit differences
How to modify the network card mac address (text)
How to implement file sharing in VMWARE
Microsoft Win10 will push a new browser
What should I do if the win7 system power, network, and volume icons are gone?
Win8 game can not be full screen how to do
Thunder magic to solve the problem of computer poisoning black screen
How to use the Win10 built-in recorder function?
Win8 price increase controversy
How to set video download quality for Win10 video application