中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 00:45
47,814 topics / 349,907 posts / today 4 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Why can't I upload files at the CMD prompt?
Printable Version  1,056 / 4
Floor1 linson Posted 2006-03-23 00:55
中级用户 Posts 31 Credits 283
I was uploading a file to an external FTP server. The server uses SERVER-U.
If I access the FTP through IE, I can delete and write anything on it.
Now I want to use the FTP command under cmd to upload files automatically.
Below is the content of get.txt:
open 218.85.119.28
123
123
ascii
put d:\123.rar ;the size is only 100K
bye
cmd command: ftp -s get.txt
But when it gets to put d:\123.rar, it just keeps running, yet it can't upload to the server no matter how long I wait.
Displayed message:
150 Opening ASCII mode data connection for 123.rar.


Now I just can't figure it out at all. I don't know whether there's a problem with the server settings or whether the client needs some setting. Please help me take a look and solve this for me. Thanks in advance!
Floor2 Climbing Posted 2006-03-23 18:51
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Change ascii to bin.
Floor3 linson Posted 2006-03-23 21:13
中级用户 Posts 31 Credits 283
I tried that, it still didn't work!
Floor4 Climbing Posted 2006-03-24 09:41
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
I think it's a problem with your FTP server. I tested it on my own FTP server, and everything was normal.
Floor5 linson Posted 2006-03-24 22:32
中级用户 Posts 31 Credits 283
Thanks, expert climbing! I'll check the server settings again.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023