Is there a way to detect the File system that a file is on?
Printable View
Is there a way to detect the File system that a file is on?
As in NTFS versus FAT? If so, you can do a WMI query to determine the File System type.
Yes - FAT, FAT32 and NTFS - how would I do that (WMI)?
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:
Dim FSO As New Scripting.FileSystemObjectClass Dim MyDrive As Scripting.Drive = FSO.GetDrive("C:\") MessageBox.Show(MyDrive.FileSystem)