|
-
Oct 6th, 2011, 10:40 PM
#2
Re: Opening Folder if file exists in folder
First up, if you want to get the path to the Program Files folder, or any other standard folder for that matter, then you should be using Environment.GetFolderPath or My.Computer.FileSystem.SpecialDirectories. You can then use IO.Path.Combine or My.Computer.FileSystem.CombinePath to append a relative folder or file path. If you then want to open a file or folder, you should be calling Process.Start. If you pass a folder path then it will open that folder in Windows Explorer.
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
|