MediaWiki:Sitenotice:
2025-12-29: I have restored the wiki to a backup from the end of November. Starting in September 2025, accesses went form the 800MB-1.2GB range per month to 26GB in September, 42GB in October, and 70GB in November with most accesses originating from China. As soon as I realized what was causing all the access problems in November, I shut it down (it had reached 36GB by then) behind a password/login screen. The database had gotten corrupted, and I tried a restore from just before the spike in access but that didn't work. Thus, end of November. I still have the other daily backups so if there were any important additions in December, let me know and maybe they can be recovered. - Allen H.

COPY

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
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