Right-click "Edit" is missing for .bat files

0

When I right click on a batch file, the Edit option that opens it in Notepad is not there. How do I get it back?

Matt R. Johnson

Posted 2011-06-30T20:37:33.973

Reputation: 133

Answers

1

That's a context menu issue. Try this.

imtheman

Posted 2011-06-30T20:37:33.973

Reputation: 3 503

0

If that file is marked as read-only, then that'd make sense for that to be missing.

Right-click the file and select "Properties". Make sure it's not marked as "Read-Only". I guess that "Archive" property may also cause this, not sure what that really does, actually.

If that's not it, you could always try opening the file directly from Notepad. Start > Run > notepad. Then open that file, edit it, save it. You may have better luck yet, if you make a copy of the file first.

Edit: Here's how to manually add the edit option

  1. Open Windows Explorer, click on Tools > Folder Options
  2. Click on the File Types tab
  3. Click "new" to add a file type, type in "bat" as the extension. Make sure the associated file type list is correctly set.
  4. Select the new association you've made, and add a new action for editing.

James T Snell

Posted 2011-06-30T20:37:33.973

Reputation: 5 726

The file is not read-only. I can open it from within Notepad. But how to I get that "Edit" option back?? – Matt R. Johnson – 2011-06-30T20:48:22.687

If you cut & paste the contents in to a new batch file stored in your My Docs, can you "edit" that? Is it possible your file extensions aren't actually .bat, but rather .bat.txt or something? – James T Snell – 2011-06-30T20:51:50.437

No. Every single batch file, old and new, is missing the Right-Click edit option. And I know they are actual batch files. If I double click them, they run like batch files. – Matt R. Johnson – 2011-06-30T20:58:06.767

Are you selecting more than one file to edit at one time?....http://www.sevenforums.com/tutorials/131470-context-menu-items-missing-fix-when-more-than-15-files-selected.html

– Moab – 2011-07-01T00:25:04.100