Append command
Like the path MS-DOS command, the append command lets you open files in another directory as if they were in the current directory.
See our append definition if you're looking for information about how to append text or a file to a file.
Availability
Append is an external command available for the following versions of the Microsoft operating systems as append.exe.
Append syntax
APPEND Drive: \Path /X /E Path:on or off
Drive: | The drive letter to be searched. |
---|---|
\Path | The path to be searched. |
/X :on or :off | Extends the DOS search path for specified files when executing programs. Processes SEARCH FIRST, FIND FIRST, and EXEC functions. The :ON and :OFF are new to version MS-DOS 5.0. |
/Path :on or :off | If path is already included for a program file, :on tells the program to also search in appended directories. Default= :on. Note: The default value of = :on was added in MS-DOS 5.0 and above. |
/E | Causes the appended path to be stored in the DOS environment and searched for there. |
; | Use ";" to separate multiple Drive:\path statements on one line. |
Append examples
You cannot use any paths on the same command line as /X and /E. The :ON and :OFF options are only available in MS-DOS 5.0 and later. Do not append within a Windows environment. The append command can be used on a network. Invalid drive specifications are not detected until DOS attempts to use the search path to find specified files.
append
Using append alone displays the current search path.
append c:\docs;c:\letters
The above command adds the docs and letters directories to the path. After running this command if you typed "edit myfile.txt" and the file was not in the current directory the computer would look in these appended directories.