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:
- 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.)
- 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.
Thanks for the tip!
ReplyDeleteThanks, very useful
ReplyDeleteThanks! Just helped me.
ReplyDeleteIt's 9:30 at night and you just helped me solve a problem. I love you man.
ReplyDeletegrazie....!
ReplyDeleteExcellent, it helped me a lot.
ReplyDelete!!!Thanks!!!
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.
ReplyDeleteThis problem can also be cause if the destination area doesn't have enough available space to hold the download. Just as an FYI.
ReplyDeleteBingo! Worked like a charm! Thanks!
ReplyDeleteWorked - thanks!
ReplyDeleteMuy fácil y útil.
ReplyDeletePerdí 2 días buscando otras opciones y se solucionó de las 2 maneras indicadas.
Mil Gracias.
Worked like a Charm!!!
ReplyDeleteThanks so much.
DD
Great tip, thanks :))
ReplyDeleteVery Useful tip
ReplyDeletewas about to pull my hair until I read this ... thanks
ReplyDeletethanks its working
ReplyDeletethank you so much !! God Bless you
ReplyDeleteTo download a file existing on your web hosting server to your local computer, all you need is generate a GET command.
ReplyDeletehttps://downloadshareitapp.com