China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 14:46
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » FTP automatic login View 3,050 Replies 3
Original Poster Posted 2003-05-29 00:00 ·  中国 江苏 苏州 联通
初级用户
Credits 124
Posts 6
Joined 2003-05-29 00:00
23-year member
UID 2589
Gender Male
Status Offline
In DOS, how can I use the FTP command to log in automatically?
Floor 2 Posted 2003-05-29 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Do you mean automatically entering the username and password?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-05-30 00:00 ·  中国 湖南 长沙 电信
初级用户
Credits 106
Posts 1
Joined 2003-05-30 00:00
23-year member
UID 2665
Gender Male
Status Offline
I know this, hehe
ftp -s:ftp.ato 127.0.0.1
Here, -s: is the switch, ftp.ato is a text file and can also be named anything you want. Its contents are as follows:
username //your username
password //the corresponding password
ls //everyone knows this, hehe
Replace the IP address 127.0.0.1 with your real IP

Hope this can help you
Floor 4 Posted 2003-06-02 00:00 ·  中国 江苏 苏州 联通
初级用户
Credits 124
Posts 6
Joined 2003-05-29 00:00
23-year member
UID 2589
Gender Male
Status Offline
Thanks, everyone.
This is how I did it:
First I wrote a myftp.bat
ftp -ins:c:\temp\test.bat
Then I wrote another test.bat
open xxx.xxx.xxx.xxx
user xxx xxxxxx
binary
put c:\temp\example_test.xls *******
bye
Forum Jump: