Computing.Net > Forums > Programming > VBS easy one! shared folders

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBS easy one! shared folders

Reply to Message Icon

Name: madlan
Date: January 31, 2003 at 04:51:20 Pacific
OS: 98SE
CPU/Ram: p4 512mb
Comment:

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
-----



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


system files Sending varible to a batc...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VBS easy one! shared folders

trace shared folder accessor www.computing.net/answers/programming/trace-shared-folder-accessor/13842.html

VB script to copy folders www.computing.net/answers/programming/vb-script-to-copy-folders/16435.html

Share a folder in Sharing tab www.computing.net/answers/programming/share-a-folder-in-sharing-tab/6290.html