Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to ftp a large file from a Windows client to a Windows server, using their IP addresses. This is on an internet independent network. While the file is transferring, I would like to determine how many bytes have been received by the server. I then would like to use this information to determine in real-time the percentage of the file that has been transferred to the server.

Any recommendations as to the ftp command syntax and C# code to achieve this?

share|improve this question
This is different than your question, but you could just use scp to copy stuff to the same server if you have ssh access. It prints an info bar by default. If you need the usage: scp ./local/file.avi – nerdwaller Oct 31 '12 at 21:47
Thanks for your comment. Colleagues have developed specific SW for our client to load and verify files to/from HW that acts as the server. This is an internet independent network. So I need to develop C# code that is compatbile with our SW that illustrates the progress of the file being loaded/read. We have code to GUI illustrate progress. I just need to figure out the total file size and the number of bytes that are being ftp transferred (written/read) at any given time. Any thoughts? . – klwillie Nov 1 '12 at 22:30
Interesting. Looks like in the man page there is an option "hash" which prints a # for each 1024bytes transferred. You could probably get close knowing the file size. You could stat the file-size and then for each hash printed, you can divide the total of hash's by total file size.... That may not be an exact way to do it, but it may be a decent start (it'll be more accurate than Window's guess!)? I will try to look a bit more later on when I get home. – nerdwaller Nov 1 '12 at 22:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.