clicking "Open with" when multiple files are selected
-
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
-
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
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 -
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. HubbinsTextpad (www.textpad.com) supports it. So do zipping utilities like winzip and winrar.
-
Textpad (www.textpad.com) supports it. So do zipping utilities like winzip and winrar.
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 -
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. HubbinsYes, 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
-
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
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