Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Command-line FTP function does not work

I am trying to copy file to a remote ftp account, but failed.

The same FTP file upload work in filezilla but not working in windows FTP command line.

The settings:

port: 21
transfer mode: active
type: plain ftp

I go to command line then

ftp
lcd "C:\testfolder"
open 1.2.3.4 21
user dummyuser
password dummypassword
cd "httpdocs/log"
binary
prompt n
put "abc.txt" (hangs at put)

When it hang, the message show is: 150 Opening BINARY mode data connection for abc.txt

abc.txt is successfully created at remote ftp, but the file content is 0 byte.

It keep on hang there.

share|improve this question

migrated from stackoverflow.com Aug 23 '11 at 13:12

This question came from our site for professional and enthusiast programmers.

marked as duplicate by slhck Aug 4 '12 at 18:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

Ok, found the fixes.

http://superuser.com/questions/215775/command-line-ftp-function-does-not-work

comment by Pants, saying add ftp.exe into windows firewall exception list do works.

share|improve this answer

Using Windows 7 I found that "File Transfer Program" was already in my "Inbound Rules" list in Windows Firewall (once for TCP and once for UDP), however it still wasn't working.

To make it work I needed to edit those rules and change "Profiles" (in Advanced tab) from just private to public, private and domain.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.