MLHA - PC- Software - DOS - Commands - External - APPEND

 

Sets a search path for data files. (PATH is used for program files).
If  a file is not found in the current directory, DOS will search appended paths in turn.
 

append [/x:][/e][/path][drive:]path[;[drive:]path;...]
/x
/x:on
   Extends the search by including programs that use one of the following DOS functions::
- INT 21h, 11h : Search First (FCB)
- INT 21h, 4Bh : Exec
- INT 21h, 4Eh : Find First (Handle)
/x:off (default) : The appended paths are searched only by programs using the following DOS functions:
- INT 21h, 0Fh : Open File (FCB)
- INT 21h, 23h : Get File Size (FCB)
- INT 21h, 3Dh : Open Handle
Extended search must be off when any of the following commands are used:
ATTRIB, BACKUP, DIR, REPLACE, RESTORE, XCOPY.
/e Saves the appended paths in the DOS environment (APPEND=).
This switch is accepted only the first time APPEND is used.
/path:on Files having drives and/or paths are processed.
This switch discards any previously appended paths using only the paths specified.
/path:off Files having drives and/or paths are not processed.

   

Examples
>append Shows appended drives and paths.
>append; Removes appended drives and paths returning search to normal: look for data files only in current (working) directory.
>append c:\letters;d:\docs\reports Looks for data files in:
1) the current directory
2) c:\letters
3) d:\docs\reports
 
Notes