Results 1 to 4 of 4

Thread: File System

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    105

    File System

    Is there a way to detect the File system that a file is on?

  2. #2
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: File System

    As in NTFS versus FAT? If so, you can do a WMI query to determine the File System type.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    105

    Re: File System

    Yes - FAT, FAT32 and NTFS - how would I do that (WMI)?

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: File System

    you can add a reference to Microsoft Scripting Runtime (its in the COM tabs in references)

    and you can use code like this
    VB Code:
    1. Dim FSO As New Scripting.FileSystemObjectClass
    2.         Dim MyDrive As Scripting.Drive = FSO.GetDrive("C:\")
    3.  
    4.         MessageBox.Show(MyDrive.FileSystem)

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