RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*Copy

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *Copy

*Copy

Use

This *Command copies between directories the object(s) that match the given wildcard specification.

Syntax

*Copy source_spec destination_spec [[~]options]

Parameters

source_spec Valid (wilcarded) pathname specifying a file or directory
dest_spec Valid (wilcarded) pathname specifying a file or directory
options Valid options (Upper/lowercase letters, separated by spaces) Default ?
A(ccess) Force destination access to same as source ON
C(onfirm) Prompt for confirmation of each copy ON
D(elete) Delete the source object after copy OFF
F(orce) Force overwriting of existing object OFF
L(ook) Look at destination before loading source file OFF
N(ewer) Copy only if source more recent than destination OFF
P(rompt) Prompt for disc to be changed as needed in copy OFF
Q(uick) Use application workspace as a buffer OFF
R(ecurse) Copy subdirectories and contents OFF
S(tamp) Restamp date-stamped files after copying OFF
(s)T(ructure) Copy only the directory structure OFF
V(erbose) Print information on each object copied ON

Notes

Options are taken from the system variable Copy$Options, and those given to the command.

To turn on a specific option, it must be included in the option list. To ensure a specific option is turned off, then it must be preceded with the tilde symbol (~).

The leafname of the destination must specify a filename, or the wildcard symbol ‘*’, which in the latter case will use the same pathname as the source file.

It is important to note, that an infinite loop can easily be caused by copying a directory into one of its sub-directories.

See also

  • *Access
  • *Delete
  • *Rename
  • *Wipe
Revised on January 22, 2010 23:13:15 by Andrew Hodgkinson (6) (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *Rename, *BackUp, *PipeCopy

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys