Microsoft DOS append command

Updated: 11/10/2017 by Computer Hope

About append

Similar to the path MS-DOS command, the append command enables a user to open files in the specified directory as if they were in the current directory.

Tip: See our append definition If you are looking for information about how to append text or a file into a file.

Availability

The append command is an external command available in the below versions of Microsoft operating systems as append.exe.

MS-DOS 3.2x - 6.2x
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP

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 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

Note: You can not 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 will not be 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

Adds the docs and letters directories to the path which means if you typed "edit myfile.txt" and the file was not in the current directory the computer would also look in these directories.