Copy file

 

 

The last parameter (FALSE in the example), is if you want error if the destination file exists :

 

   If Not CopyFile ( PChar ( 'c:\Source.exe' ) , PChar ( 'c:\destion.exe' ) , FALSE ) Then

      MessageDlg ( 'File not copied .' , mtWarning , [ mbOk ] , 0 ) ;


Back Home Foward