Change "Edit" Application for ".bat"

I

irene

I want to change the Edit program association for .bat
files but there is no "BAT" in Folder Options > File Types.
How can I do this?

TIA
 
B

Big_Al

irene said:
I want to change the Edit program association for .bat
files but there is no "BAT" in Folder Options > File Types.
How can I do this?

TIA

You have to edit it with regedit. If you are comfortable then here is
the key.

[HKEY_CLASSES_ROOT\batfile\shell\edit\command]

Edit the "default" to point to your new program.
Note if there are spaces in the filename / path put the whole thing in
quotes. Like "C:\program files\xx\xx.exe" %1
and as much as %1 was not in quotes in the original entry, I think it
should be just in case the file name has spaces in it. But I'll leave
that change up to you.
 
I

irene

Big_Al said:
irene said:
I want to change the Edit program association for .bat
files but there is no "BAT" in Folder Options > File Types.
How can I do this?

TIA

You have to edit it with regedit. If you are comfortable then here is
the key.

[HKEY_CLASSES_ROOT\batfile\shell\edit\command]

Edit the "default" to point to your new program.
Note if there are spaces in the filename / path put the whole thing in
quotes. Like "C:\program files\xx\xx.exe" %1
and as much as %1 was not in quotes in the original entry, I think it
should be just in case the file name has spaces in it. But I'll leave
that change up to you.

Thanks... the %1 did require quotes around it.
 

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

Similar Threads

using ansi.sys in a *.bat file 1
.bat Default Program 1
Bat Files 4
Creating a .bat file? 43
Bat files 2
date format and BAT execution 1
BAT File to Run 3 Programs 4
Settings for .bat files? 3

Top