Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32 API
Message
From
16/04/1997 15:50:45
 
 
To
16/04/1997 15:46:07
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00028595
Message ID:
00028602
Views:
38
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform