HELPLIB.HLB  —  Lexicals  F$READLINK  Examples
  1.$ CREATE FILE.TXT
    HELLO EXIT
    $
    $ CREATE/SYMLINK="FILE.TXT" L.LNK
    $ X=F$READLINK("L.LNK")
    $ SH SYM X
      X = "FILE.TXT"
    $

    This example uses the F$READLINK function to return the
    target file name for a specified symbolic link.

  2.$ CREATE FILE.TXT
    HELLO EXIT
    $
    $ CREATE/SYMLINK="FILE.TXT" L.LNK
    $ CREATE/SYMLINK="L.LNK" LINK_TO_LINK.LNK
    $ X= F$READLINK("LINK_TO_LINK.LNK")
    $ SH SYM X
    X = "L.LNK"

    This example shows how F$READLINK functions when the target
    is a symbolic link file.
Close Help