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".