Announcement

Collapse
No announcement yet.

How to?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to?

    How do I add a property to the File Explorer Right click options? I've seen this done with VB activeX. Anyone created a simple module/function to do this with PB and maybe associate at it with an EXE.

    (Sorta like .ZIP does) - I don't really have a use for it, but I want to add this to my code library. Anyone willing to trade code library snippets can feel free to email me.

    [email protected]

    Tye
    Explorations v9.10 RPG Development System
    http://www.explore-rpg.com

  • #2
    Do you mean like READONLY and HIDDEN?
    Dale

    Comment


    • #3
      Tryone,

      Here is one piece of code that may help.
      Note that you'll have to incorporate an
      Administrator manifest if you want it to work under Vista.

      Windows-Explorer context menu
      http://www.powerbasic.com/support/pb...ad.php?t=25037

      Mike Stefanik's manifest code
      http://www.powerbasic.com/support/pb...ad.php?t=14309

      Comment


      • #4
        Thanks!

        Vista sucks.. I really won't worry about that OS. (I'll go Linux if 2K/XP become the minority)

        Explorations v9.10 RPG Development System
        http://www.explore-rpg.com

        Comment


        • #5
          I agree Tyrone,
          Unless you find some need for your niche (aka, unless you start feeling that need to support it because users demand it), then forget VISTA

          From time to time I ask about VISTA but only because I want to prepare for the stage of "What IF???"....but to date only a handful if not less customers that demand such level

          Hopefully it will die out much like ME did, but you always have to prepare for the unexpected
          Engineer's Motto: If it aint broke take it apart and fix it

          "If at 1st you don't succeed... call it version 1.0"

          "Half of Programming is coding"....."The other 90% is DEBUGGING"

          "Document my code????" .... "WHYYY??? do you think they call it CODE? "

          Comment


          • #6
            Any examples of how to get these newly added items on the context menu to have separators around them?

            Any examples of how to add an icon with the item?
            Scott Slater
            Summit Computer Networks, Inc.
            www.summitcn.com

            Comment


            • #7
              Originally posted by Pierre Bellisle View Post
              Tryone,

              Here is one piece of code that may help.
              Note that you'll have to incorporate an
              Administrator manifest if you want it to work under Vista.

              Windows-Explorer context menu
              http://www.powerbasic.com/support/pb...ad.php?t=25037
              Pierre,

              I just tried your code (don't recall seeing it before. Missed it first time round, I guess). I don't see anything happening. Clicking the buttons, then running Explorer, there seems to be no change in either of the RightClick menus in Explorer.

              I'm missing something here. Just what is supposed to be happening?

              (Oh, and please be kind. While not my first post, I am still very sensitive {grin}.)

              ====================================================
              He that is of the opinion money will do everything
              may well be suspected of doing everything for money.
              Ben Franklin
              ====================================================
              It's a pretty day. I hope you enjoy it.

              Gösta

              JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
              LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

              Comment


              • #8
                Originally posted by Gösta H. Lovgren-2 View Post
                Pierre,

                I just tried your code (don't recall seeing it before. Missed it first time round, I guess). I don't see anything happening. Clicking the buttons, then running Explorer, there seems to be no change in either of the RightClick menus in Explorer.

                I'm missing something here. Just what is supposed to be happening?
                Are you running Vista? If so it definitely needs a manifest with ADMIN rights.
                Scott Slater
                Summit Computer Networks, Inc.
                www.summitcn.com

                Comment


                • #9
                  I'm missing something here. Just what is supposed to be happening?
                  Here's what I see on my machine (WinXP - no manifest), after using the "Add right-click to "Windows Explorer" for .Exe files" button...
                  Open a folder window and right click a file with .exe extension, you should see a new item in the popup menu = "Windows Explorer - Right-click".
                  If you click that new menu option, a new instance of Pierre's app is opened, this one has the path of the subject file added to the "%L = " label at the bottom of the window.. cute!



                  Remove the new right click option by using the same button again (now titled Clean registry for "Windo...etc")
                  Attached Files
                  Rgds, Dave

                  Comment


                  • #10
                    Worked fine under Vista too, but only after the manifest was added.

                    Any code around to also add an icon with your text to these menus?
                    Scott Slater
                    Summit Computer Networks, Inc.
                    www.summitcn.com

                    Comment


                    • #11
                      Scott, am using XP.

                      Okay, Dave, got the same results here. Clever. What's neat is that the effect is immediate. No need to rerun Explorer (actually I use Explorer Plus).

                      Now to figure out something useful for it. {grin}

                      ======================================================
                      "I am become death,
                      shatterer of worlds."
                      Robert J. Oppenheimer (1904-1967)
                      (citing from the Bhagavad Gita,
                      after witnessing the world's first nuclear explosion)
                      ======================================================
                      It's a pretty day. I hope you enjoy it.

                      Gösta

                      JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                      LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                      Comment

                      Working...
                      X