CollapseAll image

Examples

The following example simply makes a copy of FILE1.NEW called FILE1.OLD, overwriting an existing FILE1.OLD if necessary.

.COPY FILE1.OLD=FILE1.NEW/D

This example copies the specified file from the SYS: directory to the current directory.

.COPY=SYS:ERSATZ.INI

This makes copy of all of the files with BAS extensions in all of the PPNs of the current device/logical unit, plus the file DSK1:DIRECT.LST. The copies will all be in the current PPN and will all have SAV extensions.

.COPY *.SAV=*.BAS[],DSK1:DIRECT.LST

The following demonstrates the ability to create new directories as needed while copying files. It copies all of the files from DSK0:[50,*] to the corresponding PPN in DSK1:. Note that the ability to create new directories during the COPY operation is only available if you are currently logged into [1,2]. Furthermore, if the OPTIONS=STRICT setting is specified in the miame.ini, then you may not create files during a COPY command outside of the current project.

.COPY DSK1:[]=DSK0:[50,*]

The following two examples illustrate the use of a quoted native operating system filespec. In the second case, it also illustrates the use of %ENV% variables.  (%MIAME% is an automatically created environment variable which points to the directory where the miame.ini is.)

.COPY "/tmp/backup of app.log" = OPR:APP.LOG

.COPY ASHELL.LST = "%MIAME%\ashlog.log"

 

History

2010 April, A-Shell 5.1.1181: Add MINDAYS and MINSECS switches.