Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I add a new item to right click menu for any file type and associate a action to this without using any third party tool. I hope it is possible using some registry hack..

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Paste the following into a .reg file:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\MakeSomethingUp]
@="This text will appear in the context menu"

[HKEY_CLASSES_ROOT\*\shell\MakeSomethingUp\command]
@="\"C:\\Program Files\\MyApp\\MyApp.exe\" \"%1\""

Import that file into the Registry.

Does that do what you need?

share|improve this answer
    
yes.. this works great. One more thing how can I control the sequencing of this newly added item? –  Ramesh Soni Jun 19 '09 at 8:39
    
I don't know if it's possible to manipulate the order of context menu items, sorry. –  ThatGraemeGuy Jun 21 '09 at 21:10

If you want it to happen for any file type, and you're just passing the file as an arg to the program in question, you can put a shortcut to the program in your SendTo menu (at %userprofile%\SendTo). I keep Notepad and Wordpad in there all the time.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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