Right Click to Edit BAT File

D

Diggy

When I right click a bat file, there is no option to either open it or edit
it, but it will run if I left click it. How can I have the option to edit
the bat?
 
A

Alex Nichol

Diggy said:
When I right click a bat file, there is no option to either open it or edit
it, but it will run if I left click it.

Make the following, after - - start and before - - end into a file by
cut/paste to NotePad. Don't let lines wrap around (@= starts a new
line, that ends with 4e,\ ), and make sure there is a blank line at the
end. Save as "Patch.reg" then right-click on this file and take Merge to
enter it into the registry.

- - start
REGEDIT4

[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00

[HKEY_CLASSES_ROOT\batfile\shell\edit]

[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,25,31,00


- - end
 

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