Search for file

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need to search a file that his name is test1.exe.
If the name is test1.exe the code is is written, if not msgbox appears with wrong file.
I only have this:Dim fileDialogBox As New OpenFileDialog()
OpenFileDialog1.FileName = "test1.exe"
OpenFileDialog1.Filter = "test1.exe|*.exe|All files (*.*)|*.*"
OpenFileDialog1.ShowDialog()
Normally i use with path:Dim fb As New FolderBrowserDialog
fb.Description = "Select directory:"
fb.ShowNewFolderButton = True
If fb.ShowDialog = Windows.Forms.DialogResult.OK Then

View the full article
 
Back
Top