No problem.
I am close to publishing an updated DLL with the added functions listed below. I still have a couple bugs to fix.
code:
;-----------------------------------------------------------------------------------------------------
; Share Methods
;-----------------------------------------------------------------------------------------------------
; NetShareAdd ($Server, $NetName, $Type, $Remark, $Max_Uses, $Path)
;
; $Server (string) computer on which to add share.
; $NetName (string) name of share.
; $Type (string) one of the following:
; STYPE_DISKTREE
; STYPE_PRINTQ
; STYPE_DEVICE
; STYPE_IPC
; $Remark (string) share comment or description
; $Max_Uses (numeric) Maximum number of connections (-1 = unlimited)
; $Path (string) local path on $Server to share out.
;
; Returns 1 (true) if successful.
; Adds a new disk share on server \\bullpup
;-----------------------------------------------------------------------------------------------------
; NetShareCheck ($Server, $Path)
;
; $Server (string) computer on which to add share.
; $Path (string) local path on $Server to share out.
;
; Returns (string) one of the following:
; STYPE_DISKTREE Disk drive
; STYPE_PRINTQ Print queue
; STYPE_DEVICE Communication device
; STYPE_IPC Interprocess communication (IPC)
; STYPE_SPECIAL Special share reserved for interprocess communication
; (IPC$) or remote administration of the server (ADMIN$).
; Can also refer to administrative shares such as C$, D$,
; E$, and so forth.
; Checks if c:\data on server \\testserver is sharing a device
;-----------------------------------------------------------------------------------------------------
; NetShareGetInfo ($Server, $ShareName)
;
; $Server (string) computer on which to add share.
; $ShareName (string) name of share on $Server to share remove.
;
; Returns an interleaved array if successful.
; [0] = 'netname' [1] = data
; [2] = 'type' [3] = data
; [4] = 'remark' [5] = data
; [6] = 'max_uses' [7] = data
; [8] = 'current_uses' [9] = data
; [10] = 'path' [11] = data
;-----------------------------------------------------------------------------------------------------
; NetShareSetInfo ( $Server, $ShareName, $Properties )
;
; $Server (string) computer on which to add share.
; $ShareName (string) name of share on $Server to share remove.
; $Properties (string)
;
; $Properties is a string of properties and values. "property=value;"
; The "=" and ";" is required for each property/value pair.
; Properties:
; remark => 'New description of share.',
; max_uses => numeric -1 = unlimited,
;
; Returns 1 (true) if successful.
; Sets information on share testshare on server \\testserver
;-----------------------------------------------------------------------------------------------------
; NetShareDel ($Server, $ShareName)
;
; $Server (string) computer on which to add share.
; $ShareName (string) name of share on $Server to share remove.
;
; Returns 1 (true) if successful.
; Deletes share 'myShare' on server \\testserver
[ 29. November 2002, 03:54: Message edited by: Howard Bullock ]