View Single Post
Old 12-02-2006, 11:28 PM
digitiger digitiger is offline
Senior Member
Join Date: Jan 2001
Posts: 716
Default RE: How to Transfer files Form Folder to Folder??????

Though there are multiple ways and also you can use WINAPIs directly also. but if you are looking for simple option then just add the following file to you project, and also add its name to the USES clause in your source file:


this file has a Procedure named "CopyFile(const FileName, DestName: string)" and Renamefile and Deletefile also

Suppose you want to copy file named "ABC.txt" from folder ABC to XYZ then you can do so simply by following statement

CopyFile('C:\ABC\ABC.txt', 'C:\XYZ\ABC.txt');

Hope it helps and if it does then do accept the answere
Reply With Quote