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

Join 132,389 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,241 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
post 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 07:05AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month