MediaWiki:Sitenotice
2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.

2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year.

2026-03-16: Special thanks to Don Barber for hosting a backup mirror of CoCopedia: https://cocopedia.dgb3.net

COPY

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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