i need to copy files from one place to another in pascal.
this is my first ever look at pascal so im horrible at it.
my code is as follows:
CODE
For i := 0 To WorkSpace.DM_ProjectCount - 1 Do
Begin
Project := WorkSpace.DM_Projects(i);
Project.DM_Compile; // Compile the current project
ReportFile.Add('Project : ' + Project.DM_ProjectFileName);
For k := 0 To Project.DM_LogicalDocumentCount - 1 Do
Begin
Document := Project.DM_LogicalDocuments(k);
[color=#FF0000]
i want to copy "document" which is now a file(i think) to a directory..........use desktop for example??
[/color]
ReportFile.Add(Document.DM_FullPath);
End;
// Add a separator
ReportFile.Add('..............................................................................');
ReportFile.Add(' ');
End;
i wish to copy the files instead of add them to a report file as shown. any ideas how to do this?
please help, its very urgent!