There is a WinAPI call called CopyFile Also. The compiler thinks you are
referring to this. The extra parameter incidentally is a Boolean value.
False replaces the file if it already exists. The help file refers to
copyfile from a unit called FMXUtils from memory. You will need to include
this in your uses clause. 

-----Original Message-----
From: Colin Dillicar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 October 2000 15:04
To: Multiple recipients of list delphi
Subject: [DUG]: Re:Copying Files


Hi all,

I'm attempting to create a simple install program that will (just) fit
together with an application on a single floppy disk.
The idea is that a client will put the diskette in the drive, select
START/RUN then open A:/Install  and the program will display a directory
list of C:\ , for selection or an Edit box instead. That way I can ensure
that idiot entries will be checked for.

Trouble is when I assign, for instance, 'C:\{directory}' to a string
variable 'PathStg' and call MkDir(PathStg) the directory is created, but
when I later try to copy a file from A:\ by using the construct  -
CopyFile('A:\Program.exe', PathStg); the compiler tells me that there are
incompatible types 'String' and 'Pchar' in the command -  Please, why is
this ?

If I use - CopyFile('A:\Program.exe' , 'C:\DestDir\Program.exe');  then I'm
told 'Not enough actual parameters' -  Why  ?

The Help topic 'Moving, Copying and Renaming Files told me to use
CopyFile(FromFile,ToFile) where these parameters are strings. Where am I
going wrong ?

Using Delphi/V3.

TIA

    Colin





----- Original Message -----
From: Patrick Dunford <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 2:46 PM
Subject: RE: [DUG]: Application Idle


> Application.OnIdle is not the same. It fires when the app becomes idle.
But
> it does not tell you how long the app has been idle.
>
> However you may be able to implement a timer by polling with
> WaitForInputIdle. Application.OnIdle event is equivalent to calling
> WaitForInputIdle with the parameter value INFINITE.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Rohit Gupta
> > Sent: Wednesday, 27 September 2000 13:12
> > To: Multiple recipients of list delphi
> > Subject: Re: [DUG]: Application Idle
> >
> >
> > IF you havent found it yet... try teh application.onidle event
> >
> > To:             Multiple recipients of list delphi
> > <[EMAIL PROTECTED]>
> > Send reply to:  [EMAIL PROTECTED]
> > From:           "Dedy Darmayanto" <[EMAIL PROTECTED]>
> > Subject:        [DUG]:  Application Idle
> > Date sent:      Mon, 25 Sep 2000 16:05:46 +0700
> >
> > > Hi,
> > >
> > > How to detect Application Idle in Delphi,
> > > I mean that when the user does not use application in 5 minutes,
> > > then the application close
> > >
> > > Dedy,
> > >
> > >
> >
> >
> >
> > Rohit
> >
> > ======================================================================
> > CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
> > PH    (649) 489-2280
> > FX    (649) 489-2290
> > email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> > ======================================================================
> >
> > ------------------------------------------------------------------
> > ---------
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> >
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"



CAUTION - This message may contain privileged and confidential information intended 
only for the 
use of the addressee(s) named above.  If you are not the intended recipient of this 
message you are 
hereby notified that any use, dissemination, distribution or reproduction of this 
message is prohibited.  
If you have received this message in error please notify Progressive Enterprises Ltd. 
immediately via 
email at [EMAIL PROTECTED]  Any views expressed in this message 
are those of the 
individual sender and may not necessarily reflect the views of Progressive Enterprises 
Ltd.

This footnote also confirms that Progressive Enterprises Ltd. has swept this email 
message for the 
presence of computer viruses.  This does not guarantee this message is virus free.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to