中国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-12 13:13
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » FTP automatic login
Printable Version  3,046 / 3
Floor1 wojue Posted 2003-05-29 00:00
初级用户 Posts 6 Credits 124
In DOS, how can I use the FTP command to log in automatically?
Floor2 Wengier Posted 2003-05-29 00:00
系统支持 Posts 10,521 Credits 27,736
Do you mean automatically entering the username and password?
Floor3 dos哥哥 Posted 2003-05-30 00:00
初级用户 Posts 1 Credits 106
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
Floor4 wojue Posted 2003-06-02 00:00
初级用户 Posts 6 Credits 124
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023