Copy » History » Version 6
Per Amundsen, 06/07/2023 02:23 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.6_ |
|---|---|---|---|
| 2 | |||
| 3 | 6 | Per Amundsen | */copy [-aop] <filename> <filename/directory>* |
| 4 | 1 | Per Amundsen | |
| 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 | 1 | Per Amundsen | | -f | Flushes copy to disk immediately. | |
| 14 | 6 | Per Amundsen | | -p | Preserves accessed/created/modified timestamps. | |
| 15 | 1 | Per Amundsen | |
| 16 | *Parameters* |
||
| 17 | |||
| 18 | 5 | Per Amundsen | table(ktable). |
| 19 | |*Parameter*|*Description*| |
||
| 20 | | <filename> | Filename to copy from. (Can be a [[Scripting_Wildcards|wildcard]]) | |
||
| 21 | | <filename/directory> | Filename or directory to copy to. | |
||
| 22 | 1 | Per Amundsen | |
| 23 | *Example* |
||
| 24 | |||
| 25 | <pre> |
||
| 26 | ; Copy all the files in directory 'aaa' into directory 'bbb'. |
||
| 27 | /copy aaa bbb |
||
| 28 | |||
| 29 | ; Copy file 'aaa.png' into folder 'bbb' |
||
| 30 | /copy aaa.png bbb |
||
| 31 | </pre> |