Results 1 to 3 of 3

Thread: FileDialog to search for USB device and output info

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2015
    Posts
    2

    FileDialog to search for USB device and output info

    Hi there
    i was just wondering what would i need to put the filter as so all you can do is select a USB device, and then for the program to save as variables what folders are in their and the paths, thank you

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,398

    Re: FileDialog to search for USB device and output info

    vb Code:
    1. Imports System.IO
    2.  
    3. Public Class Form1
    4.  
    5.     Private Function GetRemoveableDrives() As IEnumerable(Of DriveInfo)
    6.         Return (
    7.             From d
    8.             In DriveInfo.GetDrives
    9.             Where d.DriveType.ToString = "Removable"
    10.             Select New With {
    11.                 .Name = d.Name,
    12.                 .IsReady = d.IsReady,
    13.                 .Size = d.TotalSize}
    14.             ).
    15.         ToList()
    16.  
    17.     End Function
    18.  
    19. End Class

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2015
    Posts
    2

    Re: FileDialog to search for USB device and output info

    Thanks will test it now!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width