You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
366 B
Perl
12 lines
366 B
Perl
5 years ago
|
# This following code shares the D:\MyShare directory
|
||
|
%share_def = (
|
||
|
'maxusers' => -1,
|
||
|
'netname' => 'MyShare',
|
||
|
'passwd' => "",
|
||
|
'path' => 'd:/MyShare',
|
||
|
'permissions' => 0,
|
||
|
'remark' => 'This is MyShare',
|
||
|
'type' => 0x00, # directory
|
||
|
);
|
||
|
|
||
|
$status = Win32::NetResource::NetShareAdd(\%share_def, $parm_error);
|