Location:
State:
Carrier
Country
Status

Batch files won't run, open editor instead


Somehow (most likely my fault) .bat files have defaulted to opening my text editor (UltraEdit) instead of executing.

I took all the file associations out of UltraEdit and re-started - no change

I followed internet advice to remove

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.b*​atUserChoice

and re-started - no change

I uninstalled UltraEdit and restarted - .bat's still try to open UltraEdit but can't find it.

Help

Try this :
Deleteany entries under the OpenWithListsubkey
or
Take a backup of your regkey and delete the entire ".bat" key not only UserChoise subkey

Code:
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat]  (if present: remove "UserChoice") [HKEY_CURRENT_USERSoftwareClasses.bat]  (if present: @ = "batfile") [HKEY_CURRENT_USERSOFTWAREClassesatfile]  (if present) [HKEY_CURRENT_USERSOFTWAREClassesatfileshell]  (if present: @ = "open") [HKEY_CURRENT_USERSOFTWAREClassesatfileshellopencommand]  (if present: @ = ""%1" %*") [HKEY_LOCAL_MACHINESOFTWAREClasses.bat]  @ = "batfile" [HKEY_LOCAL_MACHINESOFTWAREClassesatfile] [HKEY_LOCAL_MACHINESOFTWAREClassesatfileshell]  @ = "open" [HKEY_LOCAL_MACHINESOFTWAREClassesatfileshellopencommand]  @ = ""%1" %*" [HKEY_CLASSES_ROOT.bat]  @ = "batfile" [HKEY_CLASSES_ROOTatfile] [HKEY_CLASSES_ROOTatfileshell]  @ = "open" [HKEY_CLASSES_ROOTatfileshellopencommand]  @ = ""%1" %*"
How do I restore .bat files association with the system (make them run when double-clicked)?

Sorry, what does "@ =" mean?


Default, like this:

[HKEY_CLASSES_ROOT.bat] @ = "batfile"
 

Since UltraEdit is a third-party software/program and free, I'd get rid of it and see if the file association for .bat gets restored or can be restorede.

Default, like this:

[HKEY_CLASSES_ROOT.bat] @ = "batfile"
Got it, thanks!

Since UltraEdit is a third-party software/program and free, I'd get rid of it and see if the file association for .bat gets restored or can be restorede.
If you read the post you'll see I already did all that.

Fixed! Special thanks to TairikuOkami for the list, I think the problem was [HKEY_CURRENT_USERSoftwareClasses.batwhich was the only one with a link to UltraEdit

Batch files won't run, open editor instead