Core Function FileCopy
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> FileCopy( <file1>, <file2>, <flag> ) </pre> === Description === Copy a file. === Parameters === ==== file1 ==== The file to copy. ==== file2 ==== The new file name a...")
Newer edit →
(Created page with "<pre> FileCopy( <file1>, <file2>, <flag> ) </pre> === Description === Copy a file. === Parameters === ==== file1 ==== The file to copy. ==== file2 ==== The new file name a...")
Newer edit →
Revision as of 09:43, 29 November 2011
FileCopy( <file1>, <file2>, <flag> )
Contents |
Description
Copy a file.
Parameters
file1
The file to copy.
file2
The new file name and location.
flag
If the flag is higher than 0 the FileCopy will overwrite any existing file at the location.
Default is not to overwrite.
Return Value
Success: Returns 1.
Failure: Returns 0 if error occurs.
Remarks
None.
Example
FileCopy("Sputnik.exe", "Cats.exe"); // Copy but dont overwrite FileCopy("Sputnik.exe", "Cats.exe", 1); // Copy but dont DO overwrite