
Mapping network drives is good but how do you share a local drive/folder?
Hi,
here is a script using adsi:
ShareName = "testshare"
Set myserver = GetObject
("WinNT://'mydomain'/'myserver'/lanmanserver")
Set myshare = myserver.Create("Fileshare", ShareName)
myshare.Path = "c:\winnt\temp"
myshare.MaxUserCount = 10
myshare.SetInfo
Set myServer= Nothing
Set myshare = Nothing
hope it helps;
Quote:
>-----Original Message-----
>I see lots of "WSHNetwork.MapNetworkDrive()" in scripting
questions but how
>does one go about sharing a local drive through WSH
without using the
>faithful "net share" command?
>Just curious.
>Ken Chapin
>.