PDA

View Full Version : R-click menu-no edit available on .bat files



skip
03-17-2001, 09:53 PM
Normally in explorer when you right click on a MSDOS batch file (*.bat) it offers an edit choice in the resulting menu. This is gone and I was wondering how I might restore this option.
Thanks in advance! Skip

jvelte
04-03-2001, 05:41 PM
This isn't a Registry hack but. . .

If your using Windows 2K (I am) Open Windows Explorer and go to "Tools/Folder Options". Click on the "File Types" Tab and look through the list for the extension "bat". If you do not see "bat" in the list click "New" enter the 3 letter name of the file type that you want to add. Click the "Advanced" button it should show the associated file type, if not select it from the list. Click "OK" then click "Advanced". This will start the "Edit File Type" box, if you do not see "edit" within the list of "Actions", then click "New" and enter "edit" (without quotes) in the "Action" box. Under this box is another box labeled "Application used to perform action". Into this box enter "C:\WINNT\System32\NOTEPAD.EXE %1" (again, without quotes). Repeat the same steps for "Print" and "Open". For "Open" enter "%1" %* in the "Application used to perform action" this time include the quotes. For "Print" type "C:\WINNT\System32\NOTEPAD.EXE /p %1" But do not include the quotes. Hope this helps.

MCSE