Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Share/unshare af folder with vbs ?

Status
Not open for further replies.

infojens

Programmer
Jul 31, 2001
3
DK
Is it possibly to share/unshare af drive/folder with vbs ?
 


infojens,

This is for W2K:

Server = "YourServer"
Set FservObj = GetObject("WinNT://" & Server & "/lanmanserver")
Set newshare = FservObj.Create("fileshare", YourShareName)
newshare.path = "C:\YourPathName"
newshare.description = "description text"
newshare.SetInfo

Cheers,
fengshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top