Notepad is a different kind of trick to deal with stubborn programs

  
Windows operating system & ldquo; "adjoin" & rdquo; Notepad & rdquo; is a small program I love, it can help me read and record text files quickly and easily, and there is an alternative magical effect that many people do not know, then 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:
First step: Enter CMD in "Start → Run” 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 and select cmd.exe, so you can open again “command prompt” 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 is used to display and modify different extensions. The open program associated with the name file. 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, means that all file types are EXE The file (exefile is expressed as an EXE type file) is 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 represent all parameters after the program command ( This is why EXE files can run with parameters).
Although "Notepad" is simple 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