Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP ShareName Property

ASP ShareName Property


Drive Object Reference Complete Drive Object Reference Manual


The ShareName property returns the network share name of the specified drive.

**Note:** If the object is not a network drive, the ShareName property returns a zero-length string ("").

Syntax

DriveObject.ShareName

Example

<%

dim fs,d

set fs=Server.CreateObject("Scripting.FileSystemObject")

set d=fs.GetDrive("c:")

Response.Write("The sharename is: " & d.ShareName)

set d=nothing

set fs=nothing

%>


Drive Object Reference Complete Drive Object Reference Manual