Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,800 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,324 people online right now. Registration is fast and FREE... Join Now!




copy files in pascal

 
Reply to this topicStart new topic

copy files in pascal

kmoloney
21 Aug, 2008 - 07:42 AM
Post #1

New D.I.C Head
*

Joined: 21 Aug, 2008
Posts: 2

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!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 01:51PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month