From waiting independently
The file association of Win7 is not the same as that of XP, so it is difficult to restore the file association once the misoperations change. I have also written an article XP can not open the BAT file method, detailed file see: html "> http://www.waitalone.cn/post/84.html
The day before yesterday, I accidentally used other software to associate the BAT open method. As a result, I double-click the BAT file and use notepad to open it. I cannot do anything about it. After a detailed query of GG and referring to the Registry, I finally solved the problem and shared it. I hope it can help my friends who have encountered the same problem.
1. Use the built-in File Association recovery operation (used in Win7)
Assoc. bat = batfile
If not, you have to change the registry ..
2. Modify the key values of bat file opening in the registry.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT.bat]
@ = "Batfile"
[HKEY_CLASSES_ROOT.batPersistentHandler]
@ = "{5e941d80-bf96-11cd-b579-08002b30bfeb }"
First, the first registry to be imported. After the import, some people's BAT may be able to open it. The key is as follows.
(1) determined the action of executing the BAT file by default opening time
(2) here we can see that the operation under Open is used by default.
(3) Here is the command to confirm the OPen execution
After analysis, I got that due to my misoperation (2) the data was changed to np2open instead of open, so my bat file could not be opened.
I will provide the complete registry file below. If the BAT under your Win7 cannot be opened, double-click to import it.