0.9b (c) 1995 Peter Childs
This function returns the path of a directory alias. The function is a limited subset of NetGetInfo(NETALIAS) which should be used instead.
Syntax
parse value QueryDirAliasPath(dcName, aliasName) with MyRc aliasPath
Parameters
The parameters specified are:
dcName The computer name of the domain controller, which contains the alias definitions
aliasName The directory alias name
aliasPath The directory path returned if MyRc return code is 0.
Note
The function works only on directory alias definitions and the server name specified must be the domain controller computer name.
Example
/* Retrieve the directory path for a alias. */ dcName = '\\ILIDC' aliasName = 'BOOKS' /* Get access to LSRXUT.DLL functions */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs parse value QueryDirAliasPath(dcName, aliasName) with MyRc aliasPath if MyRc = 0 then do say 'Alias' aliasName 'has the path' say aliasPath end else do say 'QueryDirAliasPath(dcName, aliasName) returned errorcode' MyRc end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Alias BOOKS has the path D:\APPS\BOOKS
Inf-HTML End Run - Successful