Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help Programing a new program.
#10
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
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Re: I need help Programing a new program. - by brandonio21_phpbb3_import2 - 03-01-2012, 03:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with making a simple program Yevzor 2 13,884 03-29-2013, 05:04 AM
Last Post: Yevzor
  How to Package MySql Connector and MySql Program? Moldraxian 3 13,938 07-20-2012, 12:23 PM
Last Post: brandonio21
  Still difficulties with username and password program selimaydi 4 17,572 10-18-2010, 07:45 AM
Last Post: selimaydi

Forum Jump:


Users browsing this thread: 1 Guest(s)