how to set Windows to open .bat files using my own editor?

  • Thread starter Thread starter JD
  • Start date Start date
J

JD

Hi,

When I right-click on a .bat file, the right-click menu has a item
"Open". If I choose "Open", Windows will use notepad to open the bat
file. My question is how to make Windows to open the bat file using my
preferred editor. I go the "Folder options" but didn't see .bat is in
the file type list. Can someone kindly show me how to do it? Thanks
for any help.

Tony
 
Hi,

When I right-click on a .bat file, the right-click menu has a item
"Open". If I choose "Open", Windows will use notepad to open the bat
file. My question is how to make Windows to open the bat file using my
preferred editor. I go the "Folder options" but didn't see .bat is in
the file type list. Can someone kindly show me how to do it? Thanks
for any help.

Tony

Hello Tony,

Are you sure you've got that right? 'Open' should run the batch file.
'Edit' should open it in Notepad. You can change the default word
processor for editing by hacking the Registry (Start => Run => regedit
=> OK) and navigating to:

HKEY_CLASSES_ROOT\batfile\shell\edit\command
Right-click on the entry in the right-hand pane and modify (edit) it
to the path to the program you want.
 
Claymore said:
Hello Tony,

Are you sure you've got that right? 'Open' should run the batch file.
'Edit' should open it in Notepad. You can change the default word
processor for editing by hacking the Registry (Start => Run => regedit
=> OK) and navigating to:

HKEY_CLASSES_ROOT\batfile\shell\edit\command
Right-click on the entry in the right-hand pane and modify (edit) it
to the path to the program you want.
Hi Claymore,

Thanks for the information. I apology that the mistake I made. You are
right. It's "Edit" rather than "Open". I will try to change my registry
according to your instruction. Thanks.

Tony
 
Back
Top