How to open windows explorer window from vb.net

  • Thread starter Thread starter androoo
  • Start date Start date
A

androoo

Hi

I need my users to have a shortcut to windows\tasks from my vb.net app.
But im not sure the simplest solution to lauch explorer and navigate to
the directory...

Anyone help ???

Many thanks

androoo
 
Hello,

you could use Process.Start:

Dim procstart As New ProcessStartInfo("explorer")
Dim winDir As String =
System.IO.Path.GetDirectoryName(Environment.SystemDirectory) + "\tasks"
procstart.Arguments = winDir
Process.Start(procstart)

Regards,
P. Di Stolfo
 
Thanks ill try it out !

Hello,

you could use Process.Start:

Dim procstart As New ProcessStartInfo("explorer")
Dim winDir As String =
System.IO.Path.GetDirectoryName(Environment.SystemDirectory) + "\tasks"
procstart.Arguments = winDir
Process.Start(procstart)

Regards,
P. Di Stolfo
 
i usually just shell it out explore.exe "c:\"

oh wait a second some dipshit decided that is too dangerous right?

Thank god for Visual FRED

-Aaron
 
Back
Top