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.

I am using the command line :

option batch on
option confirm off
open ftp:// username :password hostname:port
cd directory name ---- directory on FTP
option transfer binary
put  file name on FTP C:\Users\sshah\Desktop
close
exit

When I execute task it completes without error but I do not see the file on the desktop

Any ideas what I am doing wrong>?

share|improve this question
add comment

1 Answer

There are a couple of issues I see. Are you trying to upload (use put) or download (use get) from the the FTP server?

Your statement is incorrect for a download. Also, you left off the \ and the end of your file path - this will get you everytime.

Make sure you specify the file path on the FTP server as well, and don't for get the /.

You should use option bath abort. Your change directory must be with the /, so for example:

cd /IN/

Upload:

put C:\Users\sshah\Desktop\*.txt  /IN/

Download:

get /IN/*.txt on FTP C:\Users\sshah\Desktop\
share|improve this answer
add comment

Your Answer

 
discard

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

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