Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progression bar while copying files
Message
 
To
18/06/2005 15:17:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01024640
Message ID:
01024646
Views:
12
Hi Hilmar,

Command "COPY FILE" is very dangerous if you want copy any file and in APP/EXE is any file with the same name (folder aren't same).
VFP then copy file from APP/EXE.

MartinJ

>>Dear Hilmar
>>
>>I have Mike's code below
>>But I don't have a clue on how to display a progress
>>bar as you've said.
>>Also this function looks nice, but there's something wrong
>>as it does not work
>>
>>
>>DECLARE INTEGER CopyFile IN kernel32;
>> STRING lpExistingFileName,;
>> STRING lpNewFileName,;
>> INTEGER bFailIfExists
>>
>>cd c:\backup
>>nCount = ADIR(myArray)
>>for i = 1 to nCount
>> lcFilename = myArray[i,1]
>> lcFilename = 'c:\backup\'+lcFilename
>> lcNewfile = 'c:\newdir'+lcFilename
>> CopyFile (lcFilename, lcNewfile, 0)
>>endfor
>
>Why do you need the CopyFile() API? VFP has its own COPY FILE command.
>
>The commands for the progress bar - I thought you already had something. Search in the download section, for "progress" or "thermometer".
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform