July 2000
Intermediate to advanced
492 pages
14h 53m
English
FileSystem (Drive Object) —
drvObj
.FileSystem
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.
None
<%
' 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]
%>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.
Read now
Unlock full access