Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Drive Object ShareName Property

Returns the network share name for a specified drive. This property is not currently supported on UNIX.

Syntax: VBScript Drive Object ShareName Property

object.ShareName

Arguments: VBScript Drive Object ShareName Property

object

A Drive object.

Remarks: VBScript Drive Object ShareName Property

If object is not a network drive, the ShareName property returns a zero-length string (""). The following code illustrates the use of the ShareName property:

Sub ShowDriveInfo(drvpath)

Dim fs, d, s

Set fs = CreateObject("Scripting.FileSystemObject")

Set d = fs.GetDrive(fs.GetDriveName(fs.GetAbsolutepathname(drvpath)))

s = "Drive " & d.DriveLetter & ": - " & d.ShareName

Response.Write s

End Sub

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.