Results 1 to 2 of 2

Thread: Detecting an NTFS/FAT32 File System

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    53

    Detecting an NTFS/FAT32 File System

    Anyone know how to test for the filesystem in use on a particular drive, NTFS/FAT32 using the VB.NET method.

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    On the Project menu, click Add Reference, and then click the COM tab. Choose Microsoft Scripting Runtime from the Component Name list, and then click Select.

    and in your code:
    VB Code:
    1. Imports Scripting
    2.  
    3. '
    4. '
    5. '
    6. '
    7. Dim fso As New FileSystemObject()
    8. Messagebox.Show(fso.GetDrive("C").FileSystem.Tostring)
    9. ' You can also get other informatiopn about this drive: MsgBox(fso.GetDrive("C").SerialNumber.ToString)

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