right click file menu
-
-
Hallo guys...I've got a question for u. How can we add new action on file menu when we do right click in that file?Like WinZip.When we do right click file .zip, we can see there's some actions like unzip,extract,or extract to.. Thanks for reply me..:)
HKEY_CLASSES_ROOT\exefile\shell\YourAppName\command\ YourAppName: this is what you are going to see in your right click menu. command: you specify the path to your app exe probably with %1 For example if you have app called myapp.exe in C:\ and want to display "start my app" on the right click menu you said HKEY_CLASSES_ROOT\exefile\shell\start my app\command\ in side of command you have "C:\myapp.exe %l"l is not the number but alphabet 'L' Just for your info if you add the right click menu on directory this is the place to add the same thing HKEY_CLASSES_ROOT\Directory\shell\start my app\Command Good Luck!
-
HKEY_CLASSES_ROOT\exefile\shell\YourAppName\command\ YourAppName: this is what you are going to see in your right click menu. command: you specify the path to your app exe probably with %1 For example if you have app called myapp.exe in C:\ and want to display "start my app" on the right click menu you said HKEY_CLASSES_ROOT\exefile\shell\start my app\command\ in side of command you have "C:\myapp.exe %l"l is not the number but alphabet 'L' Just for your info if you add the right click menu on directory this is the place to add the same thing HKEY_CLASSES_ROOT\Directory\shell\start my app\Command Good Luck!
Thanks again for ur reply but...I still confuse. How can we know that file,for example .zip,has been unziped or extract?Because u dont give any value for that things. And..how can we do unzip and extract directly from that file menu?Is there any commands that might be added to your sample command(HKEY_CLASSES_ROOT\exefile\shell\start my app\command\"C:\myapp.exe %l"l )that will call to the function(ex:extract/unzip) on program(winzip)?
-
Thanks again for ur reply but...I still confuse. How can we know that file,for example .zip,has been unziped or extract?Because u dont give any value for that things. And..how can we do unzip and extract directly from that file menu?Is there any commands that might be added to your sample command(HKEY_CLASSES_ROOT\exefile\shell\start my app\command\"C:\myapp.exe %l"l )that will call to the function(ex:extract/unzip) on program(winzip)?
I guess i miss your point.( i am trying to meet the deadline...) I think your have to add the extra parameter in the registery key. so if you want to add start your app to unzip/zip you might put two keys like the following HKEY_CLASSES_ROOT\exefile\shell\my app unzip\command\C:\myapp.exe "unzip" HKEY_CLASSES_ROOT\exefile\shell\my app zip\command\C:\myapp.exe "zip" and you will see two menus in context menu. one is linking to your app with unzip parameter the other is zip. At your application side on the startup, you can see Command$ to figure out which menu has been clicked. For example msgbox Command$ ( you will see either "unzip" or "zip" in this case) hope i answer your question right.
-
I guess i miss your point.( i am trying to meet the deadline...) I think your have to add the extra parameter in the registery key. so if you want to add start your app to unzip/zip you might put two keys like the following HKEY_CLASSES_ROOT\exefile\shell\my app unzip\command\C:\myapp.exe "unzip" HKEY_CLASSES_ROOT\exefile\shell\my app zip\command\C:\myapp.exe "zip" and you will see two menus in context menu. one is linking to your app with unzip parameter the other is zip. At your application side on the startup, you can see Command$ to figure out which menu has been clicked. For example msgbox Command$ ( you will see either "unzip" or "zip" in this case) hope i answer your question right.
GREAT!!!!!Thanks a lot Van. Ehm...but how if we wanna make both of them in one context menu?So..after we unzip,the context menu that will shows when we click again that file is zip.Is there another value, we must be added in registry or there's any function in vb that must be added to do this? Sorry..and thank u
-
GREAT!!!!!Thanks a lot Van. Ehm...but how if we wanna make both of them in one context menu?So..after we unzip,the context menu that will shows when we click again that file is zip.Is there another value, we must be added in registry or there's any function in vb that must be added to do this? Sorry..and thank u
I haven't figure out yet. I will need this in the future. any can help? van
-
I haven't figure out yet. I will need this in the future. any can help? van
Hi, Its great. Thanks a lot But I have still problem with context menu. They are: - How can put icon in front of context menu??? Its the same as Winzip??? - How can retrieve the path and file name when I click right mouse on file. Its the same as Winzip. Who can help me??? tramdtt