Notepad's little-known function - eliminate the virus

  

Windows comes with a notebook, everyone used it, but most people are used to simply copy and paste the text, today Xiaobian will tell you the notebook A little-known magical feature and extraordinary function, that is, the notebook can also be anti-virus, is it very magical. In general, the anti-virus software can kill the virus, the notebook will change everyone's traditional impression, such a magical thing. Let's take a look at it.

So, how is it antivirus?

Step 1: Enter CMD in "Start → Run”, Open “ Command Prompt Symbol & rdquo; window.

Step 2: Enter ftype exefile=notepad.exe %1, which means to open all EXE files with “Notepad”. This way the original virus will not start.

Step 3: Restart your computer and you will see many “Notepads” opened. Of course, there are not only virus files, but also some original system files, such as input method programs.

Step 4: Right-click on any file, select “Open with", and then click “Browse”, go to WindowsSystem32, select cmd.exe, and you can open the “ command prompt again. Symbol & rdquo; window.

Step 5: Run ftype exefile=%1 %* to restore all EXE files. Now run the anti-virus software or directly change back to the registry, you can kill the virus.

Step 6: In each "Notepad", click on “File → Save As ” in the menu, you can see the path and file name. Find the virus file and delete it manually, but be careful, you must be sure that it is a virus to delete. It is recommended to rename and write down these files. After restarting, if there is no virus, there is no system problem, and then delete it;

Attachment: Usage of Ftype

In Windows, Ftype command To display and modify the open programs associated with different extension files. This is equivalent to modifying some of the contents under the "HKEY_CLASSES_ROOT" option in the Registry Editor.

The basic usage format of Ftype is: Ftype [file type [=[open mode/program]]]

For example: ftype exefile=notepad.exe %1 in the above example, indicating All files whose file type is EXE (exefile is represented as EXE type file) are opened by the "Notepad" program, and the following %1 indicates the program itself to be opened (that is, the program when double-clicking).

type exefile=%1 %* means that all EXE files run directly (EXE can run directly, so it can be used to represent %1 of the program itself), followed by %* to indicate the program command. All parameters (this is why EXE files can run with parameters).

In the above, we recommend a method of anti-virus, which is applicable under XP, Vista and Windows7 systems, and it can be used in many special situations where the virus is not killed and the virus is on the verge of collapse. Oh.

Copyright © Windows knowledge All Rights Reserved