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. C#
  4. clicking "Open with" when multiple files are selected

clicking "Open with" when multiple files are selected

Scheduled Pinned Locked Moved C#
questiontestingbeta-testing
6 Posts 3 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hello, I am trying to add a feature to my text editor that will allow the user to select multiple files in an explorer window, then right click and push "open with" and select my program. However, after testing this, I've realized that only one of the selected files is actually passed as a command line argument to my program. How can I find out what other files are selected so that I can open them also? Thanks, Blake

    K 1 Reply Last reply
    0
    • A Anonymous

      Hello, I am trying to add a feature to my text editor that will allow the user to select multiple files in an explorer window, then right click and push "open with" and select my program. However, after testing this, I've realized that only one of the selected files is actually passed as a command line argument to my program. How can I find out what other files are selected so that I can open them also? Thanks, Blake

      K Offline
      K Offline
      Kentamanos
      wrote on last edited by
      #2

      Do you know of any programs that support this feature? I can't find any. I tried all sorts of applications. I'm thinking it's a limitation of the OS (shell in particular) and not something you can work around.


      I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
      -David St. Hubbins

      A 1 Reply Last reply
      0
      • K Kentamanos

        Do you know of any programs that support this feature? I can't find any. I tried all sorts of applications. I'm thinking it's a limitation of the OS (shell in particular) and not something you can work around.


        I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
        -David St. Hubbins

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

        Textpad (www.textpad.com) supports it. So do zipping utilities like winzip and winrar.

        K 1 Reply Last reply
        0
        • A Anonymous

          Textpad (www.textpad.com) supports it. So do zipping utilities like winzip and winrar.

          K Offline
          K Offline
          Kentamanos
          wrote on last edited by
          #4

          At least from what I can tell on my installation, Textpad doesn't really support opening multiple files with "Open with...", it creates a new menu entry (shell) for launching it. I know Winzip and Winrar create a bunch of new shell commands as well, which is different than using "Open With...". Are you actually selecting two files, right clicking them, selecting "Open with...", and then picking Textpad as the program and having it open both? If so, my installation doesn't do that...


          I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
          -David St. Hubbins

          B 1 Reply Last reply
          0
          • K Kentamanos

            At least from what I can tell on my installation, Textpad doesn't really support opening multiple files with "Open with...", it creates a new menu entry (shell) for launching it. I know Winzip and Winrar create a bunch of new shell commands as well, which is different than using "Open With...". Are you actually selecting two files, right clicking them, selecting "Open with...", and then picking Textpad as the program and having it open both? If so, my installation doesn't do that...


            I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
            -David St. Hubbins

            B Offline
            B Offline
            blakeb_1
            wrote on last edited by
            #5

            Yes, you're correct. I was using the menu entry instead of "Open with" and I had just assumed that Textpad would work the same way when using open with as it does with it's menu entry. But apparently not. I guess now my question would be how to make a shell entry that would work like that. Any tips on how to go about finding out what files are selected? Thanks, Blake

            K 1 Reply Last reply
            0
            • B blakeb_1

              Yes, you're correct. I was using the menu entry instead of "Open with" and I had just assumed that Textpad would work the same way when using open with as it does with it's menu entry. But apparently not. I guess now my question would be how to make a shell entry that would work like that. Any tips on how to go about finding out what files are selected? Thanks, Blake

              K Offline
              K Offline
              Kentamanos
              wrote on last edited by
              #6

              Take a look at this article. (It's in C++ but I'm not sure if some of these things are even possible in C# without Interops. It will give you a good starting point.)


              I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
              -David St. Hubbins

              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