Phantom Documentation

[Help Home] [Phantom Home]
CopyFile

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");
}


 


Copyright 2000-2011 Phantom Automated Solutions