MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

COPY

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Revision as of 20:57, 10 September 2015 by Polluks (talk | contribs) (Category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

COPY

COPY is creates a copy of a file, either with the same name in another location, or with a different name anywhere.

Syntax: COPY [<opts>] <srcpath> [<dstpath>] [<opts>]

Options  :

 -a = abort on error
 -p = don't print files copied (use with -w)
 -r = rewrite destination
 -s = single drive copy 
 -v = verify the copy
 -w=<dir> = copy to <dir>
 -x = copy from execution directory

COPY will fail with ERROR 218 (File already exists) if the destination file already exists. Using the -r option will prevent the error and replace the current file with the one being copied.

The -w option is needed when working with wildcards. (Remember to type : before the command when using wildcards)

Examples:

:copy /d1/MY_FILES/*.txt -w=/r0

Will copy all the files with the extension .txt from /d1/MY_FILES to the Ramdisk /r0

:copy /dd/CMDS/* -w=/d1/CMDS -r

Will copy all the files from /dd/CMDS to /d1/CMDS , replacing any already existing one.


Equivalent / similar commands in other OSs