Share folder command

  • Thread starter Thread starter Rajeev Kaula
  • Start date Start date
R

Rajeev Kaula

Is there a command in Windows 2000 that can be executed
from a batch file to enable sharing of folders to specific
users.

Thanks.

Rajeev.
 
You can use "net share" command to share a folder on the network. The tricky
part is to set security on the share and files. Setting security on the
folder (ntfs permissions) can be done via cacls / xcacls commands. Setting
the security on the share level is more tricky. You'll need to look at the
Activeds.dll and write some vbscript code to use that to set the security
(atleast on XP - not sure how advanced that library is on Win2K)


Arild
 
Back
Top