December 27, 200520 yr Hi!I have a huge problem. For some reasons, my .bat files arn't threaten as batch files. When I double click on them, notepad opens up. Also there is no option to run it on the context menu.When I go to Extras, Folderoptions and Filetypes on my computer, I can edit the .bat entry, but I don't know what to put there!?What do I have to do, so that *.bat files are *.bat files again and are executed as supposed.Thanks for your help.
December 27, 200520 yr Try to delete this extension from File Types options then it should re-register itself and it should work..
December 27, 200520 yr Author I think somehow I disabled the handling of bat files. Unfortunately it has to be long ago and I have no idea at all how I did it.The problem with it is, that some installers use bat files, unfortunately that does not really work on my system, now...So is there a way to get the system to handle bat files again
December 27, 200520 yr Make sure these entries in the Registry are correct.HKEY_CLASSES_ROOT\.bat= "batfile" (or whatever it's named)HKEY_CLASSES_ROOT\batfile (or whatever it's named)= "Batch File"HKEY_CLASSES_ROOT\batfile\shell\= "Open"HKEY_CLASSES_ROOT\batfile\shell\open\command= ""%1" %*" (the %1 is itself quoted)HKEY_CLASSES_ROOT\batfile\shell\edit\command= "C:\WINDOWS\NOTEPAD.EXE %1"
December 27, 200520 yr I think somehow I disabled the handling of bat files. Unfortunately it has to be long ago and I have no idea at all how I did it.The problem with it is, that some installers use bat files, unfortunately that does not really work on my system, now...So is there a way to get the system to handle bat files again Did you tried what I said to you?
December 27, 200520 yr Author I deleted it. now there is no .bat key in the registry. Unfortunately it did nont reregister itself either.Can you please tell me how exactly I have to create the reg keys?
December 28, 200520 yr Here are the entries from my system:Copy the text below between the dotted lines, but not the dotted lines themselves. Open Notepad and paste it in. Save the result in a suitable location as batfile.reg - making sure that the default .txt extension doesn't appear in the file name.Double-click on the saved .reg file to merge the contents.Restart.--------------------------------------------------------------Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.bat]@="batfile"[HKEY_CLASSES_ROOT\.bat\PersistentHandler]@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"[HKEY_CLASSES_ROOT\batfile]@="MS-DOS Batch File""EditFlags"=hex:30,04,00,00[HKEY_CLASSES_ROOT\batfile\DefaultIcon]@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\ 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\ 00,33,00,00,00[HKEY_CLASSES_ROOT\batfile\shell][HKEY_CLASSES_ROOT\batfile\shell\edit][HKEY_CLASSES_ROOT\batfile\shell\edit\command]@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\ 00[HKEY_CLASSES_ROOT\batfile\shell\open]"EditFlags"=hex:00,00,00,00[HKEY_CLASSES_ROOT\batfile\shell\open\command]@="\"%1\" %*"[HKEY_CLASSES_ROOT\batfile\shell\print][HKEY_CLASSES_ROOT\batfile\shell\print\command]@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\ 00,25,00,31,00,00,00[HKEY_CLASSES_ROOT\batfile\shellex][HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]@="{86C86720-42A0-1069-A2E8-08002B30309D}"[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers][HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]@="{86F19A00-42A0-1069-A2E9-08002B30309D}"[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"-----------------------------------------------------------------
Create an account or sign in to comment