Sitenotice: 11/29/2018: The wiki is back. It turns out, some anti-virus product on my web server had an issue with the latest version of PHP. My server techs have resolved this issue, and things should be working again. During the investigation, I did restore to a backup from September. There is a chance that any changes done since then were lost, but I do not recall any edits. --OS-9 Al

8/30/2016: Massive re-work is being done on the InfoBox Templates. Read that page to keep up with the plan for that, and adding better keyword tags (categories) to all the pages. --OS-9 Al (talk) 15:28, 31 August 2016 (CDT)


From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to: navigation, search


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)


: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