I need to find out what drive that folder actually exists on on that Server.
I have tried GetAbsolutePathName(path), GetDriveName(path), objFolder.path, objFolder.drive, and other various functions/attributes. But they always return "\\ServerName" instead of "E:\" or whatever drive it actually exists on.
Any ideas how to get that drive?
The background is that I need the absolute path (so E:\FolderName) so that I can create a share with the following lines of code:
CODE
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create ("C:\Finance", "FinanceShare", FILE_SHARE, MAXIMUM_CONNECTIONS, "Public share for the Finance group.")
errReturn = objNewShare.Create ("C:\Finance", "FinanceShare", FILE_SHARE, MAXIMUM_CONNECTIONS, "Public share for the Finance group.")
The C:\Finance would be where my absolute path would go, FinanceShare is what I'd name the share. If I try and put the path "\\ServerName\Folder" in it fails because it needs the drive letter.
Any ideas would be greatly appreciated.
