Notepad is a great way to deal with stubborn programs

  

Windows operating system "Accessories" in the "Notepad" is a small program I love, it can help me read and record text files quickly and easily, There is another kind of magical effect that many people don't know, that is, it can help you deal with stubborn programs. It is a wonderful experience to use it for anti-virus. You are worth trying. The specific steps are as follows:

One step: Enter CMD in "Start →Run", and open the “command prompt” 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).

ftype 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).

Although "Notepad" is easy to use, if you master the above skills, you can use "Notepad" to serve us more flexibly and efficiently.

Copyright © Windows knowledge All Rights Reserved