|
-
Oct 20th, 2005, 08:55 AM
#1
Thread Starter
Lively Member
File System
Is there a way to detect the File system that a file is on?
-
Oct 20th, 2005, 09:10 AM
#2
Fanatic Member
Re: File System
As in NTFS versus FAT? If so, you can do a WMI query to determine the File System type.
-
Oct 20th, 2005, 09:16 AM
#3
Thread Starter
Lively Member
Re: File System
Yes - FAT, FAT32 and NTFS - how would I do that (WMI)?
-
Oct 20th, 2005, 09:18 AM
#4
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:
Dim FSO As New Scripting.FileSystemObjectClass
Dim MyDrive As Scripting.Drive = FSO.GetDrive("C:\")
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|