Discussion Locked

Edit BAT Files

0 helpful
17 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I tried to modify the BAT extension toedit the *.bat files with notepad, but the "edit" does not show up when I right click the file.
I have this as the "edit" action:
C:\WINNT\system32\notepad.exe "%1"

I have also tried:
C:\WINNT\winrep.exe "%1"
C:\WINNT\notepad.exe "%1"

Any ideas?

17 replies

by borginva

Still does not help. I have done all that before. The "edit" never, ever shows up when I right click.

by bobho

Is the registry entry there?
What does it say?
Do you have the required permissions to edit the registry?

Under the edit key is the value:

&Edit

DrBob:>)

by bobho

If the entry is not there then it will not show up when you right-click the bat file. Add the entry manually to the registry.

DrBob:>)

by borginva

Dr.,
I have tried that before. I add it in, and the right click still does not show it. When I go back into the registry, that entry is gone again.
I know it is not a corrupted registry because this is a fresh install and several registrytools have been used to diagnose it.

by bobho

2 questions:

1 - What version of w2k are you running (pro, server, etc)?

2 - What does it say when you go to a command prompt and type "assoc .bat" (no quotes)?

As you have a lready figured out, somthing's screwy here.

DrBob:>)

by borginva

Dr.
I have just realized that I have been looking under .bat, not batfile. Sorry I am.
I do have:
HKEY_CLASSES_ROOT\batfile\shell\edit\command\C:\WINNT\system32\notepad.exe "%1"
It is in here, but just not working. I tried taking out the system32, but still no help.

by borginva

No responses from anyone since my last COMMENT. Closing issue. I am just accepting (again) that Windows 2000 sucks.

This discussion is closed to new replies.