Sharing a directory 
Author Message
 Sharing a directory

Hello,

Does someone know how to share a directory using a VBScript ?

thank you.
L.Potier



Sat, 28 Dec 2002 03:00:00 GMT  
 Sharing a directory

This may (or may not) be possible in WMI. I haven't seen it done in standard
script though.

--
Dominic



Sat, 28 Dec 2002 03:00:00 GMT  
 Sharing a directory

There's an ADSI example in the Clarence's ADSI FAQ.

Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net
http://cwashington.netreach.net/script_repository/repository.asp
http://cwashington.netreach.net/script_repository/query.asp
http://cwashington.netreach.net/main_site/downloads
http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq

===> http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

You can also (as Dominic speculated) use WMI as well, though I don't have a link to an example...

Both ADSI and WMI are separate downloads/installs for all but Win2000 (and the upcoming WinME)...

--
Michael Harris
MVP Scripting

This may (or may not) be possible in WMI. I haven't seen it done in standard
script though.

--
Dominic



Sat, 28 Dec 2002 03:00:00 GMT  
 Sharing a directory

In WMI:

->
Dim WMI
Set WMI =
GetObject("winmgmts:{impersonationLevel=impersonate}!//computer/root/cimv2:W
in32_Share")
 WMI.Create "C:\MyPath","MyShare", 0, 10, "Share", "Password"
Set WMI = Nothing
<-

-/>
http://msdn.microsoft.com/library/psdk/wmisdk/clasops_2xut.htm
</-

--
Dominic



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Sharing a directory using vb

2. Sharing a directory

3. Detect Shared Drives/Directories

4. Share a directory with VB

5. Sharing a directory

6. Sharing a directory from within VB

7. Share a directory with VB

8. ++Sharing a directory

9. Sharing a directory

10. Share of directory

11. Share a directory with VB

12. Sharing local directories

 

 
Powered by phpBB® Forum Software