File in progress

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
 
G

Guest

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

Mikhail

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

David Wang [Msft]

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

Bill Stewart

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top