Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Append to open data files in a specified folder as if they were in the current folder

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "how to use Append to open data files in the specified folder as these files in the current folder", easy to understand, well-organized, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "how to use Append to open data files in the specified folder as these files are in the current folder" this article.

Allows the program to open data files in the specified folder as if they were in the current folder. If used with no parameters, the append command displays an additional list of directories.

Grammar

Append [;] [[Drive:] Path [;...] [/ x: {on | off}] [/ path: {on | off}] [/ e]

Parameters.

Unattach the folder list.

[Drive:} Path

Specify 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 of [Drive:] Path, separated by semicolons.

/ x: {on | off}

Specifies whether to search for attached folders when the MS-DOS subsystem executes the program. / x:on means to search for attached 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 an attached folder when the path already contains the file name that 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 used only when using append for the first time after starting the system.

/?

Displays help at the command prompt.

Annotation

XOX

Store a list of attached folders

Using the append command with the / e command line option, you can assign an additional list of folders to an environment variable named APPEND. To do this, first use the append command with only the / e command line option. Then use append again, this time with the folders to attach. / e and [Drive:] Path cannot be specified on the same command line.

Specify multiple appended folders

To attach multiple folders, separate multiple items with semicolons. If you use the append command with the [Drive:] Path parameter again, the specified folder replaces any folder specified in the previous append command.

Use dir

When you type dir to view a list of files and subdirectories in a directory, the dir command does not include 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 opens the file in the current folder.

Use append with the program that creates the new file

When a program opens a file in an attached folder, it can find the file as it does 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 new copies. However, text editors and word processors typically save modified data files by creating new copies. To avoid confusion, do not use the append command with these programs.

Use / x:on with path

When using / x:on, you can run the program in the attached folder by typing the program name at the command prompt. You usually use the path command to specify the folder that contains the program, but when you specify an additional folder that contains the program, you do not have to use the path command. The MS-DOS subsystem looks for a program in an additional folder in its usual lookup order: first in the current folder, then in the attached folder, and then under the search path.

Abbreviate / x:on to / x

/ x:on can be abbreviated to / x. To do this, you can specify / x:on the first time you use append after booting 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 the program to open data files under B:\ Letters and A:\ Reports as if they were in the current folder, type:

Append b:\ letters;a:\ reports

To attach the same folder as above and save a copy of the additional folder list in the Windows XP environment (when using append for the first time after starting the system), type:

Append / e

Append b:\ letters;a:\ reports

The above is all the contents of the article "how to use Append to open data files in a specified folder as if they were in the current folder". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report