>>>I am not sure how to use this. I went into the Win32 API help and found somehting named CopyFile. It claims to be part of Kernel32.dll. So I:
>>>
>>>1) Put in the statement Declare integer CopyFile in Kernel32
>>>
>>>2) I tried to enter the following command in a command button:
>>>
>>>BOOL CopyFile("c:\filea.txt","c:\fileb.txt",.f.)
>>>
>>>I think this follows the syntax. I am apparently nowhere near doing this properly. Any help would be appreciated.
>>>
>>>
>>>Mitch
>>
>>It works:
>>DECLARE INTEGER CopyFile IN win32api STRING,STRING
>>=CopyFile("d:\develop\prog1.prg","d:\develop\qwe.prg")
>
>
>Thanks, it sure does work although it isn't what I want. I was hopefull that what I would see was the window filecopy window come up... you know the one with the paper flying across the box. I have been looking for it for a few days now and I cant find it. I have a VB app (and I am about to write a VFP app) where my customer would be really happy if they had that.
>
>I appreciate your help,
>
>Mitch
You can cheat your client replacing this simple command with some coding:
1. Open source file and create target file using low-level functions.
2. Copy byte by byte (or line by line).
3. Show thermometer or 'paper flying across the box' during this process.
Edward Pikman
Independent Consultant