Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
ShowFile("C:\config.sys")
End Sub
Private Sub ShowFile(PathAndFilename As String)
Dim FileData As FileInfo = My.Computer.FileSystem.GetFileInfo(PathAndFilename)
If FileData.Exists = True Then
Process.Start("explorer.exe", "/select," & FileData.FullName)
End If
End Sub
Tips and tricks for .NET using ASP and VB code.
Show a folder with a file selected
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment