Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. right click file menu

right click file menu

Scheduled Pinned Locked Moved Visual Basic
question
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ercoolz
    wrote on last edited by
    #1

    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..:)

    V 1 Reply Last reply
    0
    • E Ercoolz

      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..:)

      V Offline
      V Offline
      vancouver777
      wrote on last edited by
      #2

      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!

      E 1 Reply Last reply
      0
      • V vancouver777

        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!

        E Offline
        E Offline
        Ercoolz
        wrote on last edited by
        #3

        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)?

        V 1 Reply Last reply
        0
        • E Ercoolz

          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)?

          V Offline
          V Offline
          vancouver777
          wrote on last edited by
          #4

          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.

          A 1 Reply Last reply
          0
          • V vancouver777

            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.

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            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

            V 1 Reply Last reply
            0
            • A Anonymous

              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

              V Offline
              V Offline
              vancouver777
              wrote on last edited by
              #6

              I haven't figure out yet. I will need this in the future. any can help? van

              T 1 Reply Last reply
              0
              • V vancouver777

                I haven't figure out yet. I will need this in the future. any can help? van

                T Offline
                T Offline
                tramdtt
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups