Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to integrate a shell menu entry for all files (*) to encrypt them using a tool i already have made.

I have managed to create the entries but I don't really understand how to send the path of the selected file(s) as parameters to my tool.

Also do you think there's a better way than to call my tool with such parameter (i all the code of the encryption tool)?

share|improve this question
up vote 3 down vote accepted

Windows Registry

[HKEY_CLASSES_ROOT*\shell\Encrypt My Files]

[HKEY_CLASSES_ROOT*\shell\Encrypt My Files\command]

@="mytool.exe -enc %1"

[HKEY_CLASSES_ROOT*\shell\Decrypt My Files]

[HKEY_CLASSES_ROOT*\shell\Decrypt My Files\command]

@="mytool.exe -dec %1"

ref: http://support.microsoft.com/kb/256986

share|improve this answer
    
Yes, I managed to do it by self but I couldn't add an answer since I had too little rep :P Great answear nevertheless! – Calin Paul Alexandru Jan 28 '12 at 12:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .