When you create a share with “net useâ€, you can see the path in “My Computerâ€:
You can see the share goes to \\dc\deploy\exutils. Some people won’t want that so - how can we hide that piece of information and give the share “myCoolName�
We could, for example, script it:
Code:
(...)Set net = CreateObject("Wscript.network")net.MapNetworkDrive "Z:", \\dc\deploy\exutils (…)
and afterwards rename the share:
Code:
(...) Set o = CreateObject(â€Shell.Application†) o.NameSpace(â€Z:â€).Self.Name = “myCoolName†(…)
OR - we skip scripting and use our friends the Preferences:
which results in:
We put the new label into the “Label as†box, give it a drive letter and ready we are! Easy as that - without scripting action!
موضوعات مشابه: