Now i want to write code of vb.net to connect with Flash drive and views all files in flash drive, Please help me
Thank you
View Files in Flash DriveHow can i write this coad ?
Page 1 of 1
3 Replies - 2678 Views - Last Post: 04 February 2009 - 11:12 PM
Replies To: View Files in Flash Drive
#2
Re: View Files in Flash Drive
Posted 04 February 2009 - 06:59 PM
Use the OpenFileDialog in the tool box.
What kind of files are you wanting to open ?
What kind of files are you wanting to open ?
This post has been edited by RaySlay: 04 February 2009 - 06:59 PM
#3
Re: View Files in Flash Drive
Posted 04 February 2009 - 07:12 PM
just like he said Do a google search for openfiledialog
otherwise
[rules][/rules]
otherwise
[rules][/rules]
#4
Re: View Files in Flash Drive
Posted 04 February 2009 - 11:12 PM
Something like this should help.
Dim drives() As System.IO.DriveInfo = System.IO.DriveInfo.GetDrives() For Each drive As System.IO.DriveInfo In drives 'Skip floppy's.. useless garage. ' If the user is using a B:\ drive, they deserve to experience a 1 second lag ' that I can't stand with the A:\ If drive.Name <> "A:\" Then ' Check if the drive is removable If drive.DriveType = IO.DriveType.Removable Then Dim directory As String = drive.Name Dim fileDialog As New OpenFileDialog() fileDialog.InitialDirectory = directory fileDialog.ShowDialog() End If End If Next
Page 1 of 1