Amiga World Official AmigaDOS 2 Companion - eBook-ENG

Page 264

246

AmigaWorld Official AmigaDOS 2 Companion indicated into it. For example, if you try to use a wildcard as the destination, Copy has a surprise for you. For example, you might think that

COPY SYS:System/#?m#? TO RAM:Mfile_#?

would copy all the files from System whose names contain the letter m to the Ram Disk and append "Mfile_" to each of their names. What happens, how ever, is that Copy creates a directory named Mfile_#? on the Ram Disk and then copies the files into it. The TO argument does not support wildcard char acters.

While the Copy command does copy the contents of a file exactly, it does not copy everything associated with the file; specifically, it does not copy the time/ date stamp or any comments. It gives the destination files a time/date stamp that reflects the time of their creation by the Copy command. One attribute that is copied, however, is the protection status of the source file. The ALL/S argument not only copies all the files in the source directory, but also all the directories and files below the source in the AmigaDOS file struc ture. Copy will recreate the file structure of the source directory as it copies files to the destination directory. For example, if you enter: COPY FONTS: TO RAM: ALL

Copy duplicates the directory structure of the Fonts: directory in the RAM: directory. If, after executing this command, you enter: DIRRAM:ALL

You get the list shown in Figure 9-2.

The QUIET/S argument suppresses the report that Copy outputs when it copies multiple files. CLONE/S copies the source file's time/date stamp and the comment, in addition to its contents and protection bits. DATE/S in cludes the date-time stamp in the attributes copied to the destination, while COM/S includes the comment. Thus, the following two commands are equivalent: COPY filel TO file2 CLONE COPY filel TO file2 DATE COM

The NOPRO/S argument tells Copy not to duplicate the protection bits of the original to the destination file. Instead, Copy sets the r, w, e, and d flags on the destination file, regardless of the protection settings of the source file. The NOREQ/S argument suppresses any requesters generated by the command. For example, if you try to use a volume that is not mounted as the source or


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.