Lupo73 wrote:
I'd like to make it available also when a user right-click on other files, can someone said me what keys I have to add in registry during installation?
You might wanna also look into 'PerceivedType' (i.e., Audio, Image, Text, etc...)
Audio= .mp3, .wav, .m3u, etc...
Image= .bmp, .jpg, .png, etc...
Text= .txt, .css, .xml, etc...
Example: Audio
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\1by1]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\1by1\command]
@="\"D:\\Portable\\Player\\1by1.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\Billy]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\Billy\command]
@="\"D:\\Portable\\Player\\Billy.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\Foobar]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\Foobar\command]
@="\"D:\\Portable\\Foobar\\foobar2000.exe\" \"%1\""
Example: Image
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\FSViewer]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\FSViewer\command]
@="\"D:\\Portable\\FastStone\\Viewer\\FSViewer.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\XnView]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\XnView\command]
@="\"D:\\Portable\\Utilities\\XnView\\xnview.exe\" \"%1\""
Example: Text
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\Notepad2]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\Notepad2\command]
@="\"D:\\Portable\\Editors\\Notepad2\\Notepad2.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\Scite]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\Scite\command]
@="\"D:\\Portable\\Editors\\Scite\\Scite.exe\" \"%1\""
Example:
DropIt - Audio
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\DropIt]
@="DropIt in Music Folder"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\audio\shell\DropIt\command]
@="\"X:\\Path\\To\\DropIt\\DropIt.exe\" --pass-parameters-variables-MusicFolder \"%1\""
Example:
DropIt - Image
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\DropIt]
@="DropIt in Pics Folder"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\DropIt\command]
@="\"X:\\Path\\To\\DropIt\\DropIt.exe\" --pass-parameters-variables-PicsFolder \"%1\""
Example:
DropIt - Text
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\DropIt]
@="DropIt in Docs Folder"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\text\shell\DropIt\command]
@="\"X:\\Path\\To\\DropIt\\DropIt.exe\" --pass-parameters-variables-DocsFolder \"%1\""
This may not be the best way to handle it but it should give you some ideas/options,
drop an mp3; drops it in
or opens the Music Folder
drop a jpg; drops it in
or opens the Pics Folder
drop a txt; drops it in
or opens the Docs Folder
Note: Multiple files need special parameters/variables;
If I control-click 3 mp3s in a folder, 1by1 and Billy load the files but play the last file of the 3 (alphabetical).
Foobar2000 on the other hand loads only the 3 files and plays them correctly in alphabetical order.

Lupo73 wrote:
what is the difference between "Directory" and "Folder" in these registry strings?
I believe 'Folder' also gives you right-click access to the top-level (hierarchy) i.e. "Computer", "Desktop", "Drive", "UserName".
I use 'Folder' for
CommandPromptPortable and 'Directory' for
CyberShredder.
Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Console]
[HKEY_CLASSES_ROOT\Folder\shell\Console\command]
@="D:\\Portable\\Utilities\\Console\\Console.exe \"%L\""
[HKEY_CLASSES_ROOT\Directory\shell\Shred]
[HKEY_CLASSES_ROOT\Directory\shell\Shred\command]
@="\"D:\\Portable\\Tools\\CyberShredder.exe\" \"%1\""