Mark:
Imports System.Diagnostics
Class Explorer
Public Shared Sub StartExplorer(ByVal folder As String)
Dim sExplorerEXE As String = String.Format("{0}\explorer.exe",
Environment.GetEnvironmentVariable("windir"))
Dim info As New ProcessStartInfo(sExplorerEXE)
info.Arguments = "/n," + folder
Process.Start(info)
End Sub
End Class
see Command-Line Switches for Windows Explorer:
http://support.microsoft.com/kb/q130510/
Hope this helps,
Shariq Khan
sh****@shariqkhan.com
"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I'd like to open up Windows Explorer from my .NET desktop application to a
specific path. I essentially want to execute:
%Systemroot%\explorer.exe c:\somepath\
How can this be done? Thanks in advance.
Mark