Name
FileSystem (Drive Object) —
drvObj
.FileSystem
Synopsis
A string value that represents the file system type used to format the current drive. The recognized file system types are CDFS, NTFS, FAT, and FAT32. This is a read-only property.
Parameters
None
Example
<%
' Dimension local variables.
Dim fsoObject ' FileSystemObject
Dim drvObject ' Drive Object
Dim strFileSys ' File system of drive
' Instantiate the FileSystemObject variable.
Set fsoObject = Server.CreateObject( _
"Scripting.FileSystemObject")
' Using the GetDrive method of fsoObject, initialize
' a Drive object.
Set drvObject = fsoObject.GetDrive("\\PublicDocs")
' Retrieve the file system for the drive. This value
' will contain one of the following strings:
' NTFS, FAT, or CDFS.
strFileSys = drvObject.FileSystem
. . . [additional code]
%>
Notes
You can rely on the value of the FileSystem property of a Drive object to reflect cluster sizes and security features available for the current drive.
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.