Copies a file. The copy can be created in a specified path.
Syntax |
Description |
---|---|
cp("file1","file2"); |
Makes a copy of file1 called file2. This function does not return any data. |
cp("path1\file1","path2\file2"); |
Copies file1 in path1 to file2 in path2. |
Examples
Makes a copy of "myscript.lsf" in c:\working called "temp.lsf".
cp("c:\myscript.lsf","c:\working\temp.lsf");
See Also
List of commands , mv , pwd , copy (objects)