
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.