Scripting the creation of shares

  • Thread starter Thread starter Raymond
  • Start date Start date
R

Raymond

Hi,

I was wondering if it is possible to script the creation
of shares for the Macintosh.

Creating Windows shares works fine with the 'net share'
command, but unfortunately this does not work for Apple
Macintosh.

Thanks..
 
Macfile volume should do what you need.

macfile volume /?

The syntax of this command is:

MACFILE VOLUME /ADD
[/SERVER:\\computername] The default is local.
/NAME:volumename
/PATH:root directory path
[/READONLY:TRUE|FALSE] The default is False.
[/PASSWORD:password] The default is no password.
[/MAXUSERS:number|UNLIMTED] The default is unlimited.

MACFILE VOLUME /REMOVE
[/SERVER:\\computername] The default is local.
/NAME:volumename

MACFILE VOLUME /SET
[/SERVER:\\computername] The default is local.
/NAME:volumename
[/READONLY:TRUE|FALSE]
[/PASSWORD:password]
[/MAXUSERS:number|UNLIMITED]
 
Back
Top