Change "Edit" Application for ".bat"

  • Thread starter Thread starter irene
  • Start date Start date
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
 
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.
 
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.
 
Back
Top