//--------<
btnRegister_Context_Click() >--------
//*add additional Context-Menu in
File-Explorer for: Folders, Images, Videos, right-click on background of
folder
String app_Key = "GroupInSubfoldersByDate";
String menu_Title = "≡ SubFolders → Images
@byDate";
String app_Fullname_with_Path = System.AppDomain.CurrentDomain.BaseDirectory + "\\" + System.AppDomain.CurrentDomain.FriendlyName;
//parameter %1 %D %L %V Long Fully
Qualified Path of FIle
//parameter %W Long Fully Qualified Path
of parent Working Folder
//--< Folder >--
String menu_Path = "Folder\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path," %1" );
//--</ Folder >--
//--< Images > --
menu_Path = "SystemFileAssociations\\image\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %1");
//--</ Images > --
//--< Videos > --
menu_Path = "SystemFileAssociations\\.mov\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %W");
menu_Path = "SystemFileAssociations\\.mp4\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %W");
//--</ Videos > --
//--< Background > --
menu_Path = "Directory\\Background\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %W");
//--</ Background > --
System.Windows.Forms.MessageBox.Show("Contextmenu Keys installed");
//--------</
btnRegister_Context_Click() >--------
|