Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if file transfer ongoing or not
Message
 
To
13/05/2002 00:55:23
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Windows API functions
Miscellaneous
Thread ID:
00655561
Message ID:
00655598
Views:
15
>Hi !
>
> any sample code that will check if file tansfer is ongoing or not? a person would initiate an FTP command and send a file to my shared folder, then my app will monitor if the file is completely transferred or not.
>
>
> TIA.


One way of knowing if the transfer is over is to try to open the file exclusively. If you succeed, the transfer is over. Another way of doing it, is to check the filesize. When it stops growing for a moment, you can suppose that the transfer is over.

Using either way, it is always a good practice to include header and footer in a file. This way you can insure that no data is missing.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform