Tuesday, September 01, 2009

Fix: FTP on Vista: "Replace Existing File with Temp File:I/O Error"

I ran into a problem trying to use Vista's command-line FTP utility (ftp.exe) to download a file directly into the \inetpub\wwwroot directory (the root IIS directory) on my local machine.

The ftp get command produced the following output:

150 Opening ASCII mode data connection for file(4538 bytes).
> Replace Existing File with Temp File:I/O Error
226 Transfer complete.
ftp: 4538 bytes received in 0.17Seconds 26.69Kbytes/sec.

When I checked the local destination directory, the file was not present.

The cause of the problem was that the local directory I was trying to download the file into (in this case, \inetpub\wwwroot) is a protected directory in Vista, requiring administrator access to copy into.

So, there are a couple of possible workarounds:

  1. Run ftp.exe as Administrator. (One way to do this is to open Windows Explorer, navigate to the directory where ftp.exe is located -- typically C:\Windows\System32 -- and right-click ftp.exe and select Run As Administrator.)
  2. Download the file into a non-protected directory, and then use another tool (such as Windows Explorer) to copy the file to the protected final destination directory.

18 comments:

  1. Thanks for the tip!

    ReplyDelete
  2. Thanks! Just helped me.

    ReplyDelete
  3. It's 9:30 at night and you just helped me solve a problem. I love you man.

    ReplyDelete
  4. grazie....!

    ReplyDelete
  5. Excellent, it helped me a lot.

    !!!Thanks!!!

    ReplyDelete
  6. Thanks, I keep forgetting about this. Every time I try to download to the C: I get this message and forget every time, that I cannot. So I just change to a sub-directory and it works.

    ReplyDelete
  7. This problem can also be cause if the destination area doesn't have enough available space to hold the download. Just as an FYI.

    ReplyDelete
  8. Bingo! Worked like a charm! Thanks!

    ReplyDelete
  9. Worked - thanks!

    ReplyDelete
  10. Muy fácil y útil.
    Perdí 2 días buscando otras opciones y se solucionó de las 2 maneras indicadas.

    Mil Gracias.

    ReplyDelete
  11. Worked like a Charm!!!

    Thanks so much.
    DD

    ReplyDelete
  12. Great tip, thanks :))

    ReplyDelete
  13. Very Useful tip

    ReplyDelete
  14. was about to pull my hair until I read this ... thanks

    ReplyDelete
  15. thanks its working

    ReplyDelete
  16. thank you so much !! God Bless you

    ReplyDelete
  17. To download a file existing on your web hosting server to your local computer, all you need is generate a GET command.
    https://downloadshareitapp.com

    ReplyDelete

Non-spammers: Thanks for visiting! Please go ahead and leave a comment; I read them all!

Attention SPAMMERS: I review all comments before they get posted, and I REPORT 100% of spam comments to Google as spam! Why not avoid getting your account banned as quickly -- and save us both a little time -- by skipping this comment form and moving on to the next one on your list? Thanks, and I hope you have a great day!