Tutorial-Web Home > The FileSystem Object > The Drive Object

Object Menu

Drive
AvailableSpace
DriveLetter
DriveType
FileSystem
FreeSpace
IsReady
Path
RootFolder
SerialNumber
ShareName
TotalSize
VolumeName
File
Folder
FileSystem
TextStream

 


 
ShareName
TypeRead-Only
Return Value TypeString
Usageobject.ShareName(Drive)
DescriptionIf the drive is shared this returns the share name.
ExampleCode:
drivename=''c:\''
Set fso = CreateObject(''Scripting.FileSystemObject'')
set maindrive=fso.GetDrive(drivename)
response.write maindrive.ShareName

Result:
Accounting C-Drive

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com