ChrisRChamberlain
Programmer
Hi all
Need to create a progressbar to monitor the progress of an FTP upload(s).
The technique employed for the alternative FTP download is to determine the size of the file on the FTP server by using WinAPI call FtpOpenFile() followed by FtpGetFileSize().
Two VFP apps then run side by side - the first attempts to open the target download file with FOPEN() and monitors the filesize through ADIR() whilst in the same DO WHILE loop.
The second runs the download using FtpGetFile() to the local drive.
Knowing the orginal filesize on the FTP server and the current filesize enables the progressbar to display the percentage download.
Same technique can be employed for monitoring the copying of files on local drives - describes an alternative method.
However in the FTP upload situation, unless you can open the uploading file with FptOpenFile(), you can't retrieve the filesize with FtpGetFileSize(), which in turn means you don't have a value to express in the progressbar.
Ideas anyone?
TIA
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
PDFcommandertm.com
PDFcommandertm.co.uk
Need to create a progressbar to monitor the progress of an FTP upload(s).
The technique employed for the alternative FTP download is to determine the size of the file on the FTP server by using WinAPI call FtpOpenFile() followed by FtpGetFileSize().
Two VFP apps then run side by side - the first attempts to open the target download file with FOPEN() and monitors the filesize through ADIR() whilst in the same DO WHILE loop.
The second runs the download using FtpGetFile() to the local drive.
Knowing the orginal filesize on the FTP server and the current filesize enables the progressbar to display the percentage download.
Same technique can be employed for monitoring the copying of files on local drives - describes an alternative method.
However in the FTP upload situation, unless you can open the uploading file with FptOpenFile(), you can't retrieve the filesize with FtpGetFileSize(), which in turn means you don't have a value to express in the progressbar.
Ideas anyone?
TIA
FAQ184-2483 - answering getting answered.
Chris ![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
PDFcommandertm.com
PDFcommandertm.co.uk