IBM OS/2 LAN Server REXX Utility DLL


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


MoveDirAlias()


This function changes the directory definition of a directory alias. It 
does not move files and access control profiles.   
Syntax 


MyRc = MoveDirAlias(dcName, aliasName, serverName, newAliasDir)

  
Parameters 
The parameters specified are: 
dcName            The computer name of the domain controller, which 
                  contains the alias definition 
aliasName         The directory alias name 
serverName        The server name on which the new directory is located 
netAliasDir       The new alias directory path 
  
Note 
The function works only on directory alias definitions. The new directory 
must exist.   
Example   


/* Change the directory path for an alias. */

dcName      = '\\ILIDC'
aliasName   = 'ALLFILES'
serverName  = '\\ILIDC'
newAliasDir = 'D:\SHARED\FILES'

/* Get access to LSRXUT.DLL functions */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

MyRc = MoveDirAlias(dcName, aliasName, serverName, newAliasDir)
if MyRc \= 0 then do
 say 'MoveDirAlias returned with error code' MyRc
end
else do
 say 'Changed alias directory definition successfully'
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Changed alias directory definition successfully



Inf-HTML End Run - Successful