File in progress

  • Thread starter Thread starter Mikhail
  • Start date Start date
M

Mikhail

Hello,
Is there a way for me to know if file being copied to my
server is still in progress in command prompt? I would
like to make an automated file transfer (via FTP-upload).
Can someone guide me or give an example for me to start
with.

thanks in advance,
Mikhail
 
Well, in the ftp client use the hash command.
hash Toggle printing `#' for each buffer transferred

open somesite.net
userid
mypass
lcd c:\uploaddir
hash
bin
put myfile.dat
etc.
 
thanks Xpert. I know that already. My point is how would I
know that file being copied to my server is not yet
complete before I send the file to client.
 
Well, make sure that the command that sends the file to the client executes
after the file copying operation, and make sure these operations happen on
the same thread instead of two different threads... and you'll avoid the
synchronization problem that you state.

Otherwise, start "polling" the file to see a status change, but this is
expensive.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
thanks Xpert. I know that already. My point is how would I
know that file being copied to my server is not yet
complete before I send the file to client.
 
Mikhail said:
Is there a way for me to know if file being copied to my server is still
in progress in command prompt? I would like to make an automated file
transfer (via FTP-upload). Can someone guide me or give an example for me
to start with.

One idea: Manage a semaphore file to indicate completion.

Bill
 
Back
Top