Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I found this script, It shares a folder on C called Finance..
I need this to work on 98SE!!
Could it be changed to CREATE two folders, one called packages and another called logs (logs folder will be INSIDE packages)
Then share them BOTH?
Also could it prompt the user as to which Hard drive to create them on? (e.g C D or E)
Thankyou guys...
(and remove any rubish from the script!)
---------
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.")
Wscript.Echo errReturn
-----

![]() |
system files
|
Sending varible to a batc...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |