Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Help] - Big Problem with .bat Extension/Batch files

Featured Replies

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.

Try to delete this extension from File Types options then it should re-register itself and it should work..

  • 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 :)

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"

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?

  • 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?

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.