More and more virus programs are destroying computer data, and some viruses directly format hard disk partitions. Today we will learn the following two methods to prevent the virus program from destroying the hard disk format.
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 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!
Then save and exit Just fine. 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. .
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 and format them later. You can change the file name back to the hard disk by specifying the C:\\Windows\\format.exe file, changing its file name to format.txt or moving it to another directory, if it is in "My Computer" If you don't see 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.
When you encounter a hard drive that is maliciously formatted, which method would you choose? It depends on your own choices, and the small series is not too strong.
The sound of the computer is very important to us. Every accessory in the computer cant be separated
For gamers, buying a computer is very important to the size of the computers memory
NetMeeting is a tool provided by WinXP system that allows you to participate in online meetings or d
In WinXP system, many users have encountered the problem that the computer cant add the printer when
WinXP system prompts "Access Violation At Address" solution
If MSN can't log in under Windows
Why can't Windows IE reinstall IE?
Teach you to analyze the reasons for the failure of the keyboard and the solution
WinXP disables automatic playback skills
Xp network authentication in the registry how to add
WinXP system using the printer prompts can not set the default printer how to solve?
Share the five small cheats of WinXP practical
WinXP system qq voice can not hear my voice how to do?
Teach you how to disable worm replacement of explorer files
How to solve the slow opening of the XP system window?
"Right click" to manage the management of folders and files
IE downloads when unable to copy files can not read the source file or disk solution
Win7 uses the registry to cancel the driver automatic update step
How can I solve the Win10 system start menu?
NPS Policy Application for Windows Server 2008
Ensuring DNS Security Tips on Windows 2003 System Domains
Squid3 reverse proxy installation and configuration basic tutorial