Allows the program to open data files in the specified folder just like these files are in the current folder. If used without parameters, the append command displays an additional directory list.
grammar
append [;] [[Drive:]Path[;...]][/x:{on|off}][/path:{on|off}] [/e]
parameter
Cancel the list of additional folders.
[Drive:}Path
Specifies the drive and folder to attach to the current folder. If no drive is specified, the current drive will be used by default. You can specify multiple items of [Drive:]Path, and each item should be separated by a semicolon.
/x:{on | off}
Specifies whether to search for additional folders when the MS-DOS subsystem executes the program. /x:on means searching for additional folders. /x:off means that additional folders are not searched.
/path:{on | off}
Specifies whether you want the program to search for data files in the attached folder when the path already contains the file name the program is looking for. The default setting is /path:on.
/e
Assign the list of additional folders to an environment variable named APPEND. This command line option is only used when you use append for the first time after starting the system.
/?
Show help in the command prompt.
Comments
XOX
Store additional folder list
Use the append command with /e command line option to assign the attached folder list to an environment variable named APPEND. To do this, please first use the append command with only the /e command line option. Then use append again, this time including the folder you want to attach. You cannot specify /e and [Drive:]Path on the same command line.
Specify multiple append folders
To attach multiple folders, separate multiple items with a semicolon. If you use the append command with the [Drive:]Path parameter again, the specified folder will replace any folder specified in the previous append command.
Use dir
When typing dir to view the list of files and subdirectories in a directory, the dir command does not contain the file name from the attached folder.
Resolve file name conflicts
If the file in the attached folder has the same name as the file in the current folder, the program will open the file in the current folder.
Use with the program that creates new files append
When a program opens a file in an attached folder, the file can be found just like in the current folder. If the program saves the file by creating a new file with the same name, the new file will be created in the current folder (rather than in the attached folder). The append command is suitable for data files that will not be modified or will not be modified but will not create a new copy of the file. Database programs often modify data files without generating new copies. However, text editors and word processors generally save modified data files by creating new copies. To avoid confusion, please do not use the append command with these programs.
Use with path /x:on
When using /x:on, you can run the program in the attached folder by typing the program name at the command prompt. The path command is usually used to specify a folder containing a program, but when specifying an additional folder containing a program, the path command is not necessary. The MS-DOS subsystem searches for a program in the attached folder in its usual order of searching programs: first in the current folder, second in the attached folder, and second in the search path.
Abbreviated /x:on to /x
You can abbreviate /x:on to /x. To do this, you can specify /x:on when you use append for the first time after starting the system. After that, you can switch between /x:on and /x:off.
Use with set /e
Used with the set command /e to display a list of attached folders. For more information about environment variables and set, see "".
example
To allow the program to open data files under B:\Letters and A:\Reports, just as these files are in the current folder, type:
append b:\letters;a:\reports
To attach the same folder as above and save a copy of the attached folder list in the Windows XP environment (when you use append for the first time after starting the system), type:
append /e
append b:\letters;a:\reports
XOX
grammar
append [;] [[Drive:]Path[;...]][/x:{on|off}][/path:{on|off}] [/e]
parameter
Cancel the list of additional folders.
[Drive:}Path
Specifies the drive and folder to attach to the current folder. If no drive is specified, the current drive will be used by default. You can specify multiple items of [Drive:]Path, and each item should be separated by a semicolon.
/x:{on | off}
Specifies whether to search for additional folders when the MS-DOS subsystem executes the program. /x:on means searching for additional folders. /x:off means that additional folders are not searched.
/path:{on | off}
Specifies whether you want the program to search for data files in the attached folder when the path already contains the file name the program is looking for. The default setting is /path:on.
/e
Assign the list of additional folders to an environment variable named APPEND. This command line option is only used when you use append for the first time after starting the system.
/?
Show help in the command prompt.
Comments
XOX
Store additional folder list
Use the append command with /e command line option to assign the attached folder list to an environment variable named APPEND. To do this, please first use the append command with only the /e command line option. Then use append again, this time including the folder you want to attach. You cannot specify /e and [Drive:]Path on the same command line.
Specify multiple append folders
To attach multiple folders, separate multiple items with a semicolon. If you use the append command with the [Drive:]Path parameter again, the specified folder will replace any folder specified in the previous append command.
Use dir
When typing dir to view the list of files and subdirectories in a directory, the dir command does not contain the file name from the attached folder.
Resolve file name conflicts
If the file in the attached folder has the same name as the file in the current folder, the program will open the file in the current folder.
Use with the program that creates new files append
When a program opens a file in an attached folder, the file can be found just like in the current folder. If the program saves the file by creating a new file with the same name, the new file will be created in the current folder (rather than in the attached folder). The append command is suitable for data files that will not be modified or will not be modified but will not create a new copy of the file. Database programs often modify data files without generating new copies. However, text editors and word processors generally save modified data files by creating new copies. To avoid confusion, please do not use the append command with these programs.
Use with path /x:on
When using /x:on, you can run the program in the attached folder by typing the program name at the command prompt. The path command is usually used to specify a folder containing a program, but when specifying an additional folder containing a program, the path command is not necessary. The MS-DOS subsystem searches for a program in the attached folder in its usual order of searching programs: first in the current folder, second in the attached folder, and second in the search path.
Abbreviated /x:on to /x
You can abbreviate /x:on to /x. To do this, you can specify /x:on when you use append for the first time after starting the system. After that, you can switch between /x:on and /x:off.
Use with set /e
Used with the set command /e to display a list of attached folders. For more information about environment variables and set, see "".
example
To allow the program to open data files under B:\Letters and A:\Reports, just as these files are in the current folder, type:
append b:\letters;a:\reports
To attach the same folder as above and save a copy of the attached folder list in the Windows XP environment (when you use append for the first time after starting the system), type:
append /e
append b:\letters;a:\reports
XOX