Sharing a directory using vb 
Author Message
 Sharing a directory using vb

Anyone know of a way to create directory shares in Win95/Win98, using VB
Script?
--

--

Regards,
Mitchell Belew, MCSE


begin 666 Mitchell L Belew.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..D)E;&5W.TUI=&-H96QL.TP-

M-C W.0T*5$5,.TA/344[1D%8.C4Q,RTU,CDM-C W.0T*0412.TA/344Z.SLT


M(%)U;B!4<F%I;" C,STP1#TP04-I;F-I;FYA=&DL($]((#0U,C4U/3!$/3!!

M=T!F=7-E+FYE= T*14U!24P[24Y415).150Z;G1S97)V0'IO;VUT;W=N+F-O
D;0T*4D56.C(P,# P-#(P5#(S-3DQ,5H-"D5.1#I60T%21 T*
`
end



Mon, 07 Oct 2002 03:00:00 GMT  
 Sharing a directory using vb
Mitch:

I'm pretty new to scripting.  But if all else fails how about a Wscript
shell run method?  Using NET SHARE something like:

Option Explicit

Dim wshShell, strCmdLn

Set wshShell = Createobject("Wscript.Shell")
strCmdLn = ""
strCmdLn = strCmdLn & "NET SHARE "
' add remainder of command here

wshShell.Run strCmdLn,1,True

I think there is a way to check the error level of the NET SHARE as well.
Let me know if you need it.

Bill


Quote:
> Anyone know of a way to create directory shares in Win95/Win98, using VB
> Script?



Fri, 11 Oct 2002 03:00:00 GMT  
 Sharing a directory using vb
You can do this with ADSI.  There's an example in the ADSI FAQ link below...

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

--
Michael Harris
MVP Scripting

Anyone know of a way to create directory shares in Win95/Win98, using VB
Script?
--

--

Regards,
Mitchell Belew, MCSE




Sat, 12 Oct 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help Creating a Shared Directory using VB6.

2. how to map a shared directory using API?

3. Help using Netapi32 to set Share and directory permissions

4. Share info Using Active Directory Services (ADSI)

5. WSH - sharing directories ( net share)

6. Share a directory with VB

7. Sharing a directory from within VB

8. Share a directory with VB

9. HOW TO: Create and remove a shared directory in NT fom VB

10. Share a directory with VB

11. Creating a directory share in VB

12. Creating a shared Directory from VB

 

 
Powered by phpBB® Forum Software