I want to ftp a file to another server

link|improve this question
What, in the first place, is your OS? – WTP Dec 28 '10 at 21:34
I dont understand why this is being down voted? – biz Dec 28 '10 at 21:34
Which OS are you using? – Klaus Byskov Hoffmann Dec 28 '10 at 21:34
My OS is windows 7 – biz Dec 28 '10 at 21:35
1  
@biz it could be downvoted because the question is incomplete, or because it's to broad or not a real question. – WTP Dec 28 '10 at 21:35
feedback

migrated from stackoverflow.com Dec 28 '10 at 21:40

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

2 Answers

ftp ftp.someftp.com
cd /pub/somewhere
binary # if you are uploading non-TXT files
passive on
put filetobeuploaded.zip

Something along those lines should be enough. passive on is needed on some servers. You might not need it.

link|improve this answer
put filetobeuploaded.zip into ftp ftp.someftp.com – biz Dec 28 '10 at 21:35
Don't forget binary. IIRC ftp uses ASCII mode by default, and that could really mess up things like zip files. – cHao Dec 28 '10 at 21:37
You are right :) Hear that @biz? :) – İsmail 'cartman' Dönmez Dec 28 '10 at 21:38
feedback

if it is static, put the commands in a txt file like commands.txt, then call

ftp -s:commands.txt

Keeps it nice and clear, and you can just modify the txt file when needed.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown