Originally Posted by
Codeplug
well every day the drive that is connected has to be replaced and taken of site.
eg: there is 10 hard drives.
Monday week 1 is replaced by Monday week 2.
then the following week Monday week 2 is replaced by Monday week 1...
EDIT:
Just had a look at that page you sent me...
cheers, this script should do the trick.
Code:
Const FILE_SHARE = 0
Const MAXIMUM_CONNECTIONS = 25
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create _
("C:\Finance", "FinanceShare", FILE_SHARE, _
MAXIMUM_CONNECTIONS, "Public share for the Finance group.")