bool CopyFile(string,string)
Return Type: bool
Parameters: string Source, string Dest
Description:
CopyFile copies a file indicated by Source to a new location indicated
by Dest. Both Source and Dest can be either absolute paths or partial
paths. The return value is true if the copy is successful, false otherwise.
Example
Code |
string
sSrc = "c:\\test.dat";
string sDest = "c:\\backup\\test.bak"
bool b = CopyFile(sSrc, sDest);
if(b == false){
disp("Copy Unsuccessful");
} |