Public Shared Function OpenWith(ByRef filename As String) As Process Return Process.Start("rundll32.exe", String.Format("shell32.dll,OpenAs_RunDLL {0}", filename)) End Function