|
-
Apr 8th, 2008, 12:48 PM
#1
[RESOLVED] [2008] Open a folder from VB with file selected
This pertains to .NET 2.0, so really 2005 or 2008 is relevant to this question.
NOTE: When I use the term "explorer" or "windows explorer" i am referring to the windows shell, not Internet Explorer, which I will always call "Internet Explorer" or "IE"
I am looking for a way to launch a given folder in windows explorer from VB, however I need to also instruct it to select a certain file in the folder.
A good example of this is when you download a file via Internet Explorer. When it is done, you have the option to launch the file directly, or open the directory it was downloaded to. If you select to open the directory, it shells that directory in an explorer window, but also selects the file, which helps the user not need to look through the entire directory for it.
So I need a way to do this.
I know to simply open a folder, its process.start("folderpath"), but I don't know if there are additional params I can use to select the file, or if I will need to go the route of shelling to explorer.exe with some params to select the file.
If anyone knows, please fill me in. I am looking around the web for a solution now to.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|