Append open the data files in the specified folder as if these files are in the current folder _dos/bat
Source: Internet
Author: User
Allows programs to open data files in the specified folder as if they were in the current folder. If used without parameters, the append command displays a list of additional directories.
Specifies the drive and folder to attach to the current folder. If no drive is specified, the current drive is used by default. You can specify multiple items for Drive:]path, separated by semicolons.
/x:{on | off}
Specifies whether to search for additional folders when the MS-DOS subsystem executes the program. /x:on represents the search for additional folders. /x:off indicates that no additional folders are searched.
/path:{on | off}
Specifies whether you want the program to search for a data file in an attached folder when the path already contains the file name that the program is looking for. The default setting is/path:on.
/e
Assigns an attached folder list to an environment variable named APPEND. This command-line option is used only the first time you use append after you start the system.
/?
Display Help at the command prompt.
Comments
XOX
Store the attached folder List
Using the append command with/e command-line options, you can assign an additional folder list to an environment variable named append. To do this, first use the append command with only/e command-line options. Then use append again, this time containing the folders you want to attach. /e and [Drive:]path cannot be specified on the same command line.
Specify multiple Append folders
To attach more than one folder, separate multiple items with semicolons. If you use the append command with the Drive:]path parameter again, the specified folder replaces any folders specified in the previous append command.
Using Dir
When you type dir to view a list of files and subdirectories in a directory, the dir command does not contain the file name from the attached folder.
Resolving file name conflicts
If the files in the attached folder have the same name as the files in the current folder, the program opens the files in the current folder.
Use append with programs that create new files
When a program opens a file in an attached folder, it can find the file as if it were in the current folder. If the program saves the file by creating a new file with the same name, the new file is created in the current folder (not in the attached folder). The append command applies to data files that are not modified or modified but do not create a new copy of the file. Database programs often modify data files without generating a new copy. However, text editors and word handlers typically save modified data files by creating a new copy. To avoid confusion, do not use the APPEND command with these programs.
Use/x:on with path
When you use/x:on, you can run programs in an attached folder by typing the program name at the command prompt. You typically use the path command to specify a folder that contains programs, but you do not have to use the path command when you specify an additional folder that contains programs. The MS-DOS subsystem looks for a program in an additional folder in its usual order of finder: First in the current folder, next in the attached folder, and then in the search path.
/x:on abbreviated as/x
You can abbreviate the/x:on to/x. To do this, you specify/x:on when you first use append after you start the system. After that, you can switch between/x:on and/x:off.
Use/e with Set
Use/e with the SET command to display a list of additional folders. For more information about environment variables and set, see.
Example
To allow programs to open data files under B:\Letters and A:\Reports, just as these files are in the current folder, you can type:
Append B:\letters;a:\reports
To attach the same folder as above, and to save a copy of the attached folder list in a Windows XP environment (when you first use append after starting the system), you can type:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.