Link to home
Start Free TrialLog in
Avatar of SETP
SETP

asked on

Open Folder

How can I open a folder in VB.NET 2003? More specifically, I want to launch Windows Explorer and make it open a specific folder on the harddrive (sort of like clicking on My Documents in the Start menu)
ASKER CERTIFIED SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SETP
SETP

ASKER

I tried the following:

System.Diagnostics.Process.Start(sPicPath)

But it just opens up the picture in the associated picture viewer (Windows Picture and Fax Viewer by default)
Isn't that because your sPicPath also includes the name of the picture file
if sPicpath also includes the name of the picture file and you want only the directory, than do this

System.Diagnostics.Process.Start(System.IO.Path.GetDirectoryName(spicpath))
Avatar of SETP

ASKER

Ofcourse!!! Sorry - still half asleep :) Thanks