IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


NETACCESS Delete


The function deletes all access permission records for a particular shared 
resource.   
Syntax 


MyRc = NetDelete(NETACCESS, SrvName, Path)

  
Parameters 
The parameters specified are: 
SrvName   The server computer name 
Path      The path. This variable must have a value. See below: 

          Resource Type                 Basepath Format
          -------------                 ---------------
          Drive                         drive:
          Path                          \path
          Directory                     drive:pathname
          File                          drive:pathname
          UNC                           \\server\sharename\path
          Pipe                          \pipe\pipename
          Spooler Queue                 \print\queuename
          Serial Device Queue           \comm\chardevqueue
          
          
  
Note 
The server computer name can be specified as '' for a local server.   
Example   


/* Delete access control profile */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETACCESS = 10
SrvName = '\\ILIDC'
Path = 'D:\TEMP'

myRc = NetDelete(NETACCESS, SrvName, Path)

if myRc <> '0' then do
 say 'Got error from NetDelete() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Access Control Profile deleted'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Access Control Profile deleted



Inf-HTML End Run - Successful