CopyFile?
Posted by Renalds823 on May 16, 2001
I'm very impressed with this site, it offers some great resources for beginners. I have a query on copying an application.
If I had a Form, which OnClick Button1 I wanted to duplicate but in a different location on for example C:\DuplicationOfForm1, how could this be done?
Great site once again.
Re: Jean Claude Servaye on May 16, 2001
Something like:
var
Source, Destination: string;
begin
Source := 'c:\myfile.exe';
Destination := 'c:\mydir\mysubdir\myfile.exe';
CopyFile(Pchar(Source),Pchar(Destination));
end;
|