How to share a folder in windows 98? 
Author Message
 How to share a folder in windows 98?

http://www.*-*-*.com/
...
Set objShare = objservices.Get("Win32_Share")
    Set objInParam = objShare.Methods_("Create").InParameters.SpawnInstance_()
    objInParam.Properties_.Item("Access") = objSecDescriptor
    objInParam.Properties_.Item("Description") = "New share created by WMI script"
    objInParam.Properties_.Item("Name") = "NewShare"
    objInParam.Properties_.Item("Path") = "C:\temp"
    objInParam.Properties_.Item("Type") = 0

    'objInParam.Properties_.item("MaximumAllowed") = 10     'optional - default is 'max allowed'
    'objInParam.Properties_.item("Password") = "Password"   'optional
...

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 > http://www.*-*-*.com/

Quote:

> I can use fso to create a folder, but I don't know how to share it. My os is
> win98.
> I have look for the answer for a long time in here, but I can't found it.
> Thank for any help.
>            jazon from china



Wed, 29 Jan 2003 03:00:00 GMT  
 How to share a folder in windows 98?

     Nobody can know how grateful I feel, while I expected oneone's
respondence  and got it immediately just after your reply. I just can say:
Thank you very very much! great Mark! Thank God, I have Internet. I can't
get help around me and hard in china.
    After studying WMI document on msdn.microsoft.com. I write a simple test
VBScript:
       set objshell = getobject("winmgmts::win32_share")
      objshell.create "d:\","D$",0
   Yes! It work! But another problem arise, the share is readonly share but
I want full share. I can't find answer on document about win32_share. Who
can help me? thank



http://msdn.microsoft.com/library/psdk/wmisdk/securityprov_5695.htm
...
Set objShare = objservices.Get("Win32_Share")
    Set objInParam =
objShare.Methods_("Create").InParameters.SpawnInstance_()
    objInParam.Properties_.Item("Access") = objSecDescriptor
    objInParam.Properties_.Item("Description") = "New share created by WMI
script"
    objInParam.Properties_.Item("Name") = "NewShare"
    objInParam.Properties_.Item("Path") = "C:\temp"
    objInParam.Properties_.Item("Type") = 0

    'objInParam.Properties_.item("MaximumAllowed") = 10     'optional -
default is 'max allowed'
    'objInParam.Properties_.item("Password") = "Password"   'optional
...

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> I can use fso to create a folder, but I don't know how to share it. My os
is
> win98.
> I have look for the answer for a long time in here, but I can't found it.
> Thank for any help.
>            jazon from china



Sun, 02 Feb 2003 08:34:57 GMT  
 How to share a folder in windows 98?

http://msdn.microsoft.com/library/psdk/wmisdk/securityprov_5695.htm

The sample does set the share to everyone, but to make Everyone have write permission, you need to set that property. (AccessMask)

http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/wmisd...

I have not done this, but creating a Win32_LogicalShareAccess class should allow it.

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

>      Nobody can know how grateful I feel, while I expected oneone's
> respondence  and got it immediately just after your reply. I just can say:
> Thank you very very much! great Mark! Thank God, I have Internet. I can't
> get help around me and hard in china.
>     After studying WMI document on msdn.microsoft.com. I write a simple test
> vbscript:
>        set objshell = getobject("winmgmts::win32_share")
>       objshell.create "d:\","D$",0
>    Yes! It work! But another problem arise, the share is readonly share but
> I want full share. I can't find answer on document about win32_share. Who
> can help me? thank



> http://msdn.microsoft.com/library/psdk/wmisdk/securityprov_5695.htm
> ...
> Set objShare = objservices.Get("Win32_Share")
>     Set objInParam =
> objShare.Methods_("Create").InParameters.SpawnInstance_()
>     objInParam.Properties_.Item("Access") = objSecDescriptor
>     objInParam.Properties_.Item("Description") = "New share created by WMI
> script"
>     objInParam.Properties_.Item("Name") = "NewShare"
>     objInParam.Properties_.Item("Path") = "C:\temp"
>     objInParam.Properties_.Item("Type") = 0

>     'objInParam.Properties_.item("MaximumAllowed") = 10     'optional -
> default is 'max allowed'
>     'objInParam.Properties_.item("Password") = "Password"   'optional
> ...

> --

> link to FAQ for OE 5.5

> Mark L. Ferguson    Please reply in Newsgroup
> marfer's notes for OE 5.0 >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > I can use fso to create a folder, but I don't know how to share it. My os
> is
> > win98.
> > I have look for the answer for a long time in here, but I can't found it.
> > Thank for any help.
> >            jazon from china



Sun, 02 Feb 2003 03:00:00 GMT  
 How to share a folder in windows 98?

but Win32_LogicalShareAccess don't work on win98



http://msdn.microsoft.com/library/psdk/wmisdk/securityprov_5695.htm

The sample does set the share to everyone, but to make Everyone have write
permission, you need to set that property. (AccessMask)

http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/wmisd...
ityprov_7epf.htm

I have not done this, but creating a Win32_LogicalShareAccess class should
allow it.

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
>      Nobody can know how grateful I feel, while I expected oneone's
> respondence  and got it immediately just after your reply. I just can say:
> Thank you very very much! great Mark! Thank God, I have Internet. I can't
> get help around me and hard in china.
>     After studying WMI document on msdn.microsoft.com. I write a simple
test
> vbscript:
>        set objshell = getobject("winmgmts::win32_share")
>       objshell.create "d:\","D$",0
>    Yes! It work! But another problem arise, the share is readonly share
but
> I want full share. I can't find answer on document about win32_share. Who
> can help me? thank



> http://msdn.microsoft.com/library/psdk/wmisdk/securityprov_5695.htm
> ...
> Set objShare = objservices.Get("Win32_Share")
>     Set objInParam =
> objShare.Methods_("Create").InParameters.SpawnInstance_()
>     objInParam.Properties_.Item("Access") = objSecDescriptor
>     objInParam.Properties_.Item("Description") = "New share created by WMI
> script"
>     objInParam.Properties_.Item("Name") = "NewShare"
>     objInParam.Properties_.Item("Path") = "C:\temp"
>     objInParam.Properties_.Item("Type") = 0

>     'objInParam.Properties_.item("MaximumAllowed") = 10     'optional -
> default is 'max allowed'
>     'objInParam.Properties_.item("Password") = "Password"   'optional
> ...

> --

> link to FAQ for OE 5.5

> Mark L. Ferguson    Please reply in Newsgroup
> marfer's notes for OE 5.0 >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > I can use fso to create a folder, but I don't know how to share it. My
os
> is
> > win98.
> > I have look for the answer for a long time in here, but I can't found
it.
> > Thank for any help.
> >            jazon from china



Wed, 05 Feb 2003 04:50:12 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How to share a folder in windows 98?

2. Add a Share Driver in Win'98 on a VBScript

3. Windows 98 clients with windows NT home directory

4. Windows Scripting Host for Windows 98 Book

5. how to list all shared folders in windows 2000 server

6. Error message on Windows 98

7. Ghostscript on Windows 95/98

8. Printing and fonts under windows(98)

9. Installing PPD for Windows 98, NT, 2000

10. ps and windows 98

11. Printing in PS in HP DeskJet820Cxi under Windows 98

12. Ghostscript 6.01 on Windows 98 can't handle IRS Form 1040

 

 
Powered by phpBB® Forum Software