Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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.