Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copying files

Status
Not open for further replies.

bobbygm

Programmer
Mar 30, 2005
19
IT
Hi,

I'm sorry for this stupid question:

What's the delphi procedure to copy files from
a directory to another?
Is there anything similar to the DOS command
"COPY"? (ex. copy c:\notes\*.txt c:\other_notes)

thank you very much

Emanuele
 
Use the windows API function CopyFile(Filename: PChar; Nename:pchar; Fail: Bool);

I have simplifed the parameters.

There is also an easier to use Delphi version in the FmxUtils.pas module (DelphiX/demos/doc/filemanx folder)

Steve: Delphi a feersum engin indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top