03-01-2012, 03:49 PM
Well, This is kind of tedious to do, but you would need to scroll through every file in the computer, and see if it has the same name as your String "FileOpen". Here is the code that you are looking for:
Code:
Dim file As String = "readme.txt"
Dim d As New System.IO.DirectoryInfo("C:/")
Dim f As System.IO.FileInfo()
f = d.GetFiles(file, IO.SearchOption.AllDirectories)
If f.Length > 1 Then
'There are multiple occurences of this file
Else
For Each element In f
WebBrowser1.Navigate(element.FullName)
Next
End If