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

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
 
C

Claymore

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.
 
J

JD Young

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top