469,935 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

How to open windows explorer window from vb.net

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

Jan 26 '07 #1
3 16065
Hello,

you could use Process.Start:

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

Regards,
P. Di Stolfo

"androoo" wrote:
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

Jan 26 '07 #2
Thanks ill try it out !

On Jan 26, 12:49 pm, P. Di Stolfo
<PDiSto...@discussions.microsoft.comwrote:
Hello,

you could use Process.Start:

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

Regards,
P. Di Stolfo

"androoo" wrote:
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- Hide quoted text -- Show quoted text -
Jan 26 '07 #3
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
On Jan 26, 3:49 am, P. Di Stolfo <PDiSto...@discussions.microsoft.com>
wrote:
Hello,

you could use Process.Start:

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

Regards,
P. Di Stolfo

"androoo" wrote:
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- Hide quoted text -- Show quoted text -
Jan 26 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Kamilche | last post: by
4 posts views Thread by Ian Sedwell | last post: by
2 posts views Thread by Paul Steele | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.