[VB.NET 2010] Get paths from selected files from Shell\Explorer ContextMenu
-
So i have a basic idea of an application i want to build in my head. It involves having to add a menuitem to the Shell/Explorer ContextMenu of Windows. Here's how it should work. 1. On first time use, you are to install the menuitem by clicking a button. There's also an uninstall button to remove the menuitem from the shell contextmenu. 2. Then, once it's installed, this menuitem only shows up when you rightclick on one or more files with the .bsp file extension. 3. When you have one or more bsp files selected, you rightclick on one of them to make the contextmenu appear. From there, you click the new menuitem. 4. Then i want a form to show up with a listbox. This listbox should hold the full paths to the bsp files that the user had selected. I got as far as point 3 and im stuck on point 4. How do i go about getting the paths of the selected bsp files into the listbox on that form?
Virtual Space Shuttle Astronaut
-
So i have a basic idea of an application i want to build in my head. It involves having to add a menuitem to the Shell/Explorer ContextMenu of Windows. Here's how it should work. 1. On first time use, you are to install the menuitem by clicking a button. There's also an uninstall button to remove the menuitem from the shell contextmenu. 2. Then, once it's installed, this menuitem only shows up when you rightclick on one or more files with the .bsp file extension. 3. When you have one or more bsp files selected, you rightclick on one of them to make the contextmenu appear. From there, you click the new menuitem. 4. Then i want a form to show up with a listbox. This listbox should hold the full paths to the bsp files that the user had selected. I got as far as point 3 and im stuck on point 4. How do i go about getting the paths of the selected bsp files into the listbox on that form?
Virtual Space Shuttle Astronaut
Nobody knows? There must be way to get this to work. Im able to retrieve commandline arguments using the %1 parameter, but if i select more than one bsp files and click the menuitem in the explorer contextmenu, Windows launches multiple instances of my application. I just want it to start once, and add the path of all the selected bsp files added to a listbox. I've also tried the %2, %PATH% and %L parameters but none of them work.
Virtual Space Shuttle Astronaut