• Aucun résultat trouvé

Control Panel

Dans le document 3+ Open'" MS OS/2 Documentation Set (Page 40-46)

Copy

c

Changes system settings.

Some settings, such as time and date, can be adjusted directly in the main Control Panel window. You can make other settings by selecting one of the Control Panel menus: Preferences, Setup, Installation, or Exit.

• The Preferences menu contains the Screen Colors, Border Width, Warning Beep, Mouse, Logo Display, and Country commands.

• The Setup menu contains the Communications Port, Printer Defaults, Printer Connections, Spooler Options, Spooler Queues, and Queue Connections commands.

• The Installation menu contains the Add Font, Delete Font, Add Printer Driver, Delete Printer Driver, Add Queue Processor, and Delete Queue Processor commands.

• The Exit menu contains the Exit Control Panel and Resume com-mands.

For more information about a specific Control Panel command, see the individual entry for the command.

Copies a file, a group of files, a directory, or a group of directories.

When you choose this command, a dialog box appears, containing two text boxes: From and To. The From text box shows the names of the files or directories you have selected from the directory window. In the To text box, you can type the drive and path of the destination direc-tory (the direcdirec-tory you want to copy your files or directories to). You don't need to type the drive letter unless you are copying to a different drive.

If you are copying only one file or directory, you can copy it and re-name it at the same time by typing a new re-name in the To text box. If

~~@;m~~;~~1~~:liii~!!!~tfti(~~~:1i1!W~~'l;~;;;!;:t~R§~~1~~~i!!I~j5fil;auii~iliti~~alB~m1tCil~l~m~;~-;~~~~

you rename a directory, it shows a new date and time of creation when you display full file details; otherwise, the date and time stay the same.

You can copy multiple files or multiple directories (or even files and directories together) by extending the selection in the directory window before you choose Copy, or by typing multiple names in the From text box. You can also copy multiple files with similar filenames by using wildcard characters.

Unlike the command-line copy command, the Presentation Manager Copy command does not recognize multiple destination filenames; it ignores all but the first name in the To text box.

Warning If you are copying a file and you supply a destination file-name that already exists, MS OS/2 overwrites the destination file. (If you have turned on the Confirm On Replace option by using the File Options command on the Options menu, MS OS/2 first displays a dia-log box, asking you whether you want to overwrite the file.)

If you want to copy multiple files, do not specify a destination filename.

If you do, MS OS/2 will copy the first source file and give it the desti-nation filename; then copy the second source file, give it the same des-tination filename, and overwrite the first file; and so on until all the files have been copied. The result is one file, and its contents will be the contents of the last source file.

If you are copying multiple directories and you supply a destination name, MS OS/2 will copy the first source directory and give it the desti-nation name, then copy the remaining source directories into the first as subdirectories.

Copies a program title in Start Programs to another group.

When you select a program title from the Start Programs list and then choose this command, a dialog box appears, containing a list box with the names of the existing groups of programs and a text box where, optionally, you can type a new title for the program. To complete the command, select the group to which you want to copy the program title and choose the Copy button.

This command does not copy files; it only copies the title of the pro-gram as it is listed in Start Propro-grams.

(You can also use this command instead of the Add command to create an additional title for a program within the same group.)

Copy

fIB

§ill

c

copy source [+ source [ ... ]] [I

a:

Ib] destination [I

a:

Ib] [Iv]

Copies information from a source to a destination. The source is usu-ally a file or files, but it can also be a directory or the output of a device (such as the keyboard); the destination can be one or more files or a device.

source

Specifies where the information will be copied from. If the source is a file, MS OS/2 assumes that the file is in the current directory on the current drive, unless you tell it otherwise by specifying a drive and path. The source can also be a drive or a directory. You can copy multiple files by using wildcard characters. You can copy multiple source files to one destination file by specifying multiple source filenames separated with plus signs (+). If the source is a device, MS OS/2 takes the input from that device and copies it to the destination.

destination

Specifies where the information will be copied to. The destination can be a single file or you can use wildcard characters to specify a group of files. The destination can also be a directory or a device.

If you specify only a drive as the destination, MS OS/2 copies to the current directory on that drive; if you do not specify a drive, MS OS/2 assumes that the destination is on the current drive. If the destination is a file that does not already exist, copy creates a new file; if the file already exists, copy writes over the old file.

Iv Verifies one by one that the sectors written on the destination disk are recorded properly.

I a Treats the source or destination as ASCII text. This option applies to the filename preceding it and all remaining filenames in the command until copy encounters a Ib option, in which case the Ib option applies to the filename that precedes it. When la comes after the source, copy copies everything up to the first CTRL+Z

character, which it interprets as an end-of-file mark, and does not copy anything after that. When la comes after the destination, -copy adds an end-of-file character as the last character of the

des-tination file. When you are copying multiple files to one destina-tion, the default option is always la.

c

MS OS/2 Desktop Reference

Icommandl

111

Ib Treats the source or destination as a binary file. This option applies to the filename preceding it and all remaining filenames in the command until copy encounters a la option, in which case the la option applies to the filename that precedes it. When Ib comes after the source, copy copies everything and does not interpret any CTRL+Z characters as end-of-file marks. When Ib comes after the destination filename, copy does not add an end-of-file charac-ter to the new file.

When you use copy to append files to an existing file without changing the existing filename (including its extension), you must specify that filename as the first source file, followed by the names of the files you want to append.

When you copy a single file to a new file, the new file has the same date and time as the original. When you combine files into a new file, the new file has the current date and time.

Works the same in the DOS session as described above, except that you cannot specify multiple filenames on the command line.

Examples To copy the file COMPANY .NEW from the current drive and directory to the CUSTOMER directory on the disk in drive B, type the following:

copy company.new b:\customer

To copy all the files in the directory REPORTS on your hard disk (drive C) to the disk in drive A, type the following:

copy c:\reports\*.* a:

To combine the files INTRO.RPT, BODY.RPT, and SUM.RPT from your working drive and directory and place them in a file called REPORT on the disk in drive B, type the following:

copy intro.rpt + body.rpt + sum.rpt b:report

If you omit the destination filename, MS OS/2 combines the files and stores them under the name of the first specified file.

To combine all files with the extension .TXT into one file named COMBIN .DOC, type the following:

copy *.txt combin.doc

Country

Country

c

To combine each file that has the extension .TXT with the correspond-ing file that has the extension .REF and place the results into files with the extension .DOC (for example, VIDEO.TXT and VIDEO.REF would be combined as VIDEO.DOC), type the following:

copy *.txt + *.ref *.doc

To copy all files with the extension .TXT and all files with the extension .REF into one file named COMBIN .DOC, type the following:

copy *.txt + *.ref combin.doc

Sets the format and characters used to display time, date, numbers, and currency. By default, MS OS/2 uses the United States format.

When you select this command, a dialog box appears, in which you can specify the settings you want.

Note Before using this command, be sure that you have correctly set up code-page information in your CONFIG.SYS file. For more infor-mation about how to do this, see the Microsoft Operating System/2 User's Guide and the entries in this reference for the codepage and devinfo commands.

country=xxx[,[ drive: ]fpath ]filename]

Tells MS OS/2 which country to set up the system for. To use this command, place it in your CONFIG .SYS file.

xxx Specifies the country by using a three-digit country code from the list on the next page. You must include all three digits, even if the code begins with a zero. The default is 001 (United States).

filename

C

~ijil~~I~I@Jj~~rftj;m~tl~tl!t~-:ilmirmm~i;iil!!!§iii=lS:i!~M!i~lgj~lr8.~ij~i»r.;aH~:;;anf!RB!!!l!Si;lfrS:-~~~~~SSi!1ij~~IC~i

COUNTRY.SYS file in the root directory of the drive from which you started MS OS/2.

The country you choose determines the MS OS/2 conventions for such things as time and date format, decimal separators, and the order in which the sort utility sorts ASCII characters. The country you specify with the country command also determines which code pages you should specify with the codepage command.

The following list shows the countries or languages that you can specify with the country command, the corresponding country codes, and the code pages supported for each country:

Country or Country Code

language group code pages

Australia 061 850,437

Belgium 032 850,437

Canada (English) 001 850,437

Canada (French) 002 863,850

Denmark 045 865,850

Finland 358 850,437

France 033 850,437

Germany 049 850,437

Italy 039 850,437

Latin America 003 850,437

Netherlands 031 850,437

Norway 047 865,850

Portugal 351 860,850

Spain 034 850,437

Sweden 046 850,437

~witzerland 041 850,437

United Kingdom 044 850,437

United States 001 850,437

Note Although not shown in the list, the fo.llowing countries or languages are also available with special versions of MS OS/2: Arabic, Asia, Hebrew, Japan, Korea, and Taiwan.

Dans le document 3+ Open'" MS OS/2 Documentation Set (Page 40-46)