ShareName Property |
Description
Returns the network share name for a specified drive.
PowerBASIC Syntax
Return Value
BSTR. The share name.
Remarks
If object is not a network drive, the ShareName property returns a zero-length string ("").
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM fso AS IFileSystem DIM pDrive AS IDrive
' Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" ' Get a reference to the IDrive interface pDrive = fso.GetDrive(UCODE$(drvpath)) ' Display the newtwork share name for that drive STDOUT ACODE$(pDrive.ShareName(pDrive))
|