Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - when using the remote file operations facility, a method for identifying http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
When using the remote file operations facility, a method for identifying
files on either of the local or remote machines is required.  In order to
identify files on either the local or remote machine, two special prefixes
are supported.

@L
    The "@L" prefix is used to indicate that the file resides on the local
    machine (the one on which RFX or the debugger is running).


         @L[d:][path]filename[.ext]

    When "[path]" is not specified, the current directory of the specified
    drive of the local machine is assumed.  When "[d:]" is not specified,
    the current drive of the local machine is assumed.

    Example:

         @LOUTPUT.LOG
         @LD:\CMDS
         @LD:\CMDS\DATA.TMP

@R
    The "@R" prefix is used to indicate that the file resides on the remote
    machine.


         @R[d:][path]filename[.ext]

    When "[path]" is not specified, the current directory of the specified
    drive of the remote machine is assumed.  When "[d:]" is not specified,
    the current drive of the remote machine is assumed.

    Example:

         @RMYAPPL.DAT
         @RD:\PROGRAMS\EXE\MYAPPL.LNK
         @R\PROGRAMS\SRC
         @R\PROGRAMS\SRC\UILIB.C


Thus a file may be identified in three different ways.


     [d:][path]filename[.ext]
     @L[d:][path]filename[.ext]
     @R[d:][path]filename[.ext]

A file of the first form resides on either the local or remote machine
depending on whether the current drive is a local or remote drive.  A file
of the second form always resides on the local machine.  A file of the third
form always resides on the remote machine.

Notes:

 1. In the each form, the omission of "[d:]" indicates the current drive.


         [path]filename[.ext]
         @L[path]filename[.ext]
         @R[path]filename[.ext]

 2. In the each form, the omission of "[path]" indicates the current path of
    the specified drive.


         [d:]filename[.ext]
         @L[d:]filename[.ext]
         @R[d:]filename[.ext]

    Observe that if "[d:]" is omitted also then the following forms are
    obtained:


         filename[.ext]
         @Lfilename[.ext]
         @Rfilename[.ext]

 3. The special drive prefixes "@L" and "@R" cannot be used in your own
    application to reference files on two different machines.  These
    prefixes are recognized by RFX and the Watcom Debugger only.  Should the
    situation arise where one of your filenames begins with the same prefix
    ("@L", "@l", "@R" or "@r") then "@@" can be used.  For example, if your
    wish to refer to the file on disk called "@link@" then you could specify
    "@@link@".  Note that ".\@link@" would also suffice.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson