[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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)
0
SETP
Asked:
SETP
  • 3
  • 2
1 Solution
 
RonaldBiemansCommented:
System.Diagnostics.Process.Start("c:\blabla")
0
 
SETPAuthor Commented:
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)
0
 
RonaldBiemansCommented:
Isn't that because your sPicPath also includes the name of the picture file
0
 
RonaldBiemansCommented:
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))
0
 
SETPAuthor Commented:
Ofcourse!!! Sorry - still half asleep :) Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now