How I Can share a Folder? 
Author Message
 How I Can share a Folder?

I known How I can Created a Folder But I need to share the folder.


Wed, 18 Dec 2002 03:00:00 GMT  
 How I Can share a Folder?
hi Alberto,

Take a look at: "Publishing a Shared Folder in Windows 2000 Active
Directory":

http://support.microsoft.com/support/kb/articles/Q234/5/82.ASP

cheers, jw


Quote:
> I known How I can Created a Folder But I need to share the folder.



Wed, 18 Dec 2002 03:00:00 GMT  
 How I Can share a Folder?
You can use ADSI (if installed):

Set FservObj = GetObject("WinNT://ComputerName/lanmanserver")

set newshare = FservObj.create("fileshare","test")
newshare.path = "C:\temp"
newshare.setinfo
Set newshare = nothing

=======================================

WMI (if installed) also has methods to create shares:

Win32_Share
http://msdn.microsoft.com/library/psdk/wmisdk/clasops_52zp.htm

though finding example code may be tough :-(...

--
Michael Harris
MVP Scripting

I known How I can Created a Folder But I need to share the folder.



Wed, 18 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. renaming a shared folder

2. Personal Folder Sharing

3. Creating shared folder on a remote server

4. Sharing folders using vbscript

5. Folder sharing

6. Rights on shared folder

7. shared folder and user right in enterprise environment

8. Creating shares & setting permissions on folders

9. Map a shared folder to my computer

10. create a vbs files for web sharing folders

11. Share does not have graphic under folder?

12. shared folders

 

 
Powered by phpBB® Forum Software