01-28-2009 08:34 AM
Hi!
I'm using a mapped network drive. How I can get/set information about Servername and drivename?
For example:
A network drive \\servername\folder\subfolder\ is mapped at drive letter Y: and so I can find it in explorer (and with DIAdem command FolderExist) under "Y:\" and a folder existing there under "Y:\foldername\". How can I extract the string \\servername\folder\subfolder\ ?
Regards
Sven
01-28-2009 10:26 AM - edited 01-28-2009 10:32 AM
Hi Sven,
the following code-snippet hopefully does what you want 😉
Dim fso, drive
set fso = Createobject("Scripting.FileSystemObject" )
set drive = fso.Drives
msgbox drive( "Y" ).ShareName
By the way, the drive-object has much more properties, but the ShareName exactly returns the serverpath
kind regards
rowo