Copy » History » Version 5
Per Amundsen, 02/16/2023 02:09 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.6_ |
|---|---|---|---|
| 2 | |||
| 3 | */copy -ao <filename> <filename/directory>* |
||
| 4 | |||
| 5 | Copies a file to another filename or directory. |
||
| 6 | |||
| 7 | *Switches* |
||
| 8 | |||
| 9 | 5 | Per Amundsen | table(ktable). |
| 10 | |*Switch*|*Description*| |
||
| 11 | | -a | Appends the source file to the target file. | |
||
| 12 | | -o | Overwrites the target file if it exists. | |
||
| 13 | | -f | Flushes copy to disk immediately. | |
||
| 14 | 1 | Per Amundsen | |
| 15 | *Parameters* |
||
| 16 | |||
| 17 | 5 | Per Amundsen | table(ktable). |
| 18 | |*Parameter*|*Description*| |
||
| 19 | | <filename> | Filename to copy from. (Can be a [[Scripting_Wildcards|wildcard]]) | |
||
| 20 | | <filename/directory> | Filename or directory to copy to. | |
||
| 21 | 1 | Per Amundsen | |
| 22 | *Example* |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | ; Copy all the files in directory 'aaa' into directory 'bbb'. |
||
| 26 | /copy aaa bbb |
||
| 27 | |||
| 28 | ; Copy file 'aaa.png' into folder 'bbb' |
||
| 29 | /copy aaa.png bbb |
||
| 30 | </pre> |