>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