How to set the default open mode of .bat file under windows system?

  

Sometimes, the suffix name .bat file is accidentally checked when you select the open mode, and it is opened with Notepad or other text editor. The result is on the computer. The way the *.bat file is opened becomes a notepad or other text editor. This method is to restore the default open mode of the .bat file.

1. While holding down the windows key and the R key, type regedit in the box to open the registry editor.

2, find: Computer \\HKEY_CURRENT_USER\\SOFTWARE\\MICROSOFT\\WINDOWS\\currentversion\\Explorer\\FileExts\\.bat Delete all options except openwithlist and openwithprogids.

3, then delete all key values ​​except open default in the openwithlist. Then delete all key values ​​except open default and lnkfile in openwithprogids.

4, then exit. If not, please restart the computer. The default open mode of the .bat file can be restored.

Copyright © Windows knowledge All Rights Reserved