What do I need to do to add an item to the right click menu for files with certain file extensions, along with sub menus?

An example would be adding items to run Python files (.py, .pyw, .pyc) with a specific version of Python, so the menu for a .py files would look like say:

Open  
7-Zip >  
    ...7zip stuff
Run >  
    Python 2.5  
    Python 2.6  
    Python 3.1  
Edit >  
    IDLE 2.5  
    IDLE 2.6  
    IDLE 3.1  
various other items
link|improve this question

78% accept rate
feedback

2 Answers

up vote 7 down vote accepted

FileMenu Tools can help you create extra items in the context menu of Windows Explorer, including sub-menus. You can add the extra items only for some extensions or type of elements (files, drives, folders, ...).

alt text

link|improve this answer
That's a nice utility. – wfaulk Oct 15 '09 at 12:58
Is there some way to put items in the main part of the context menu, rather than within the "FileMenu Tools" sub-menu? – Fire Lancer Oct 15 '09 at 13:37
3  
Uncheck "Show All The Commands in Submenu" in the Options menu then click on the "Apply changes" icon. – Snark Oct 15 '09 at 14:56
feedback

In Windows XP (other Windows' should be similar):

  1. Open the File Types configuration dialog (in an explorer window Tools->Folder Options, File Types tab)
  2. Select the Registered file type you would like to add an item for
  3. Select the "Advanced" button under the "Details for ... extension" box
  4. Create a new action and associate it with the command line you would like to run.

That should add an item to the context menu for that file type.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.