. After clicking on this button the Windows file association configuration dialog opens. There can be configured which application to use to
a file. But this Windows configuration dialog is not really good for files with extension
because after a user choice was made once with selecting an application, it is only possible to choose a different application, but not remove the file association with an application.
So I suggest to open a command prompt window and run the following 8 commands:
Those 8 commands to delete registry keys remove all file associations made by current user either in the Windows file association configuration dialog or with an older version of UltraEdit which has the ability to directly change a file association from within UltraEdit with the additional feature to be able to undo that change also from within UltraEdit and restore previous file association if there was one at all.
It is possible that on execution of the commands some output the error message:
Please ignore those errors as a key to delete not existing is in real no error, but the expected result after execution.
which requires elevation to administrator and delete the appropriate key manually with Windows Registry Editor.
could be also done with a registry import file which just deletes those 8 keys with
commands as posted above because no elevation to local administrator is needed with this method while using a registry import file and
file associations for Windows Vista and later Windows versions for completeness which a user can overload with the keys in
Code: Select all
REGEDIT4
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.cmd]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat]
@="batfile"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.cmd]
@="cmdfile"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.cmd\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile]
@="Windows Batch File"
"EditFlags"=hex:30,04,00,00
"FriendlyTypeName"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,\
74,65,6d,33,32,5c,61,63,70,70,61,67,65,2e,64,6c,6c,2c,2d,36,30,30,32,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\DefaultIcon]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,69,\
6d,61,67,65,72,65,73,2e,64,6c,6c,2c,2d,36,38,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,25,31,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\print]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\print\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,2f,70,20,25,31,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas]
"HasLUAShield"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runas\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,63,\
6d,64,2e,65,78,65,20,2f,43,20,22,25,31,22,20,25,2a,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\ContextMenuHandlers]
@="Compatibility"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\ContextMenuHandlers\Compatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\PropertySheetHandlers]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile]
@="Windows Command Script"
"EditFlags"=hex:30,04,00,00
"FriendlyTypeName"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,\
74,65,6d,33,32,5c,61,63,70,70,61,67,65,2e,64,6c,6c,2c,2d,36,30,30,33,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\DefaultIcon]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,69,\
6d,61,67,65,72,65,73,2e,64,6c,6c,2c,2d,36,38,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,25,31,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\open\command]
@="\"%1\" %*"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\print]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\print\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,2f,70,20,25,31,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas]
"HasLUAShield"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runas\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,63,\
6d,64,2e,65,78,65,20,2f,43,20,22,25,31,22,20,25,2a,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\ContextMenuHandlers]
@="Compatibility"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\ContextMenuHandlers\Compatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\PropertySheetHandlers]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"
These lines can be copied into a new ANSI encoded text file saved for example as
. With a double click on this registry import file and confirming to do that import with elevation to administrator level, the original file associations for
can be restored by any user with permissions to elevate to local administrator. But this should not be necessary in your case.
to open the batch file in UltraEdit for editing.