Open the exe file with Notepad under win7 to prevent virus startup

  
After computer poisoning, many friends will open "ld Process Manager" to close several unfamiliar programs, but sometimes this happens: turn off one, then turn off the other one, just shut down That was running again right away. Then delete the startup items from the registry, restart, and restore those startup items that have just been deleted.
Because the computer only has one operating system, there is no way to remove these viruses under another system. After downloading the killing tool online, you still can't kill it.
This way, the virus has not been killed, what should I do now? Now recommend a method to everyone.
First step: Enter CMD in "Start →Run", and open the “command prompt” window.
Step 2: Enter ftypeexefile=notepad.exe%1, which means to open all EXE files with “Notepad”. This way the original virus can't be started.
The third step: restart the computer, you will see a lot of "Notepad". 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 ftypeexefile=%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.
Ftype Usage
In Windows, the Ftype command is used 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: like ftypeexefile=notepad.exe%1 in the above example, it 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).
typeexefile=%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 That's why EXE files can run with parameters).

Copyright © Windows knowledge All Rights Reserved