中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 怎样用批处理文件ftp自动登录ftp网站上传文件
English/Chinese Fix Translation
作者:
标题: 怎样用批处理文件ftp自动登录ftp网站上传文件 上一主题 | 下一主题
hantao2000
初级用户




积分 108
发帖 2
注册 2004-6-3
状态 离线
『楼 主』:  怎样用批处理文件ftp自动登录ftp网站上传文件 使用 LLM 解释/回答一下

怎样用批处理文件ftp自动登录ftp网站上传文件


2004-6-3 00:00
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
Climbing
铂金会员

网络独行侠


积分 6962
发帖 2753
注册 2003-4-16
来自 河北保定
状态 离线
『第 2 楼』:   使用 LLM 解释/回答一下

我以Windows 2003的ftp命令为例,输入ftp -h,可以看到帮助:

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP

-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
-r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
-b:async count Overrides the default async count of 3
-w:buffer size Overrides the default transfer buffer size of 65535.
host Specifies the host name or IP address of the remote
host to connect to.

Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.

你一定注意到了对-s:filename参数的说明。

在硬盘上建立一个script.txt,内容如下:
open
anonymous
user@the.net
cd public
put test.txt
bye

注:以上仅是示例,请根据实际情况修改。

然后运行命令:
ftp -s:script.txt




偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
2004-6-3 00:00
查看资料  发送邮件  访问主页  发短消息  网志  OICQ (653668)  编辑帖子  回复  引用回复
lxmxn
版主




积分 11386
发帖 4938
注册 2006-7-23
状态 离线
『第 3 楼』:  经典! 使用 LLM 解释/回答一下

呵呵,一直想用一个批处理自动登陆到我的FTP里面去,没想到可以用这个来自动完成,顶2楼的。。。


2006-9-18 04:01
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
feitian
新手上路





积分 2
发帖 1
注册 2007-5-6
状态 离线
『第 4 楼』:  请教高手 使用 LLM 解释/回答一下

我按照上面的提示去做为什么会出现
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP

-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
-r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
-b:async count Overrides the default async count of 3
-w:buffer size Overrides the default transfer buffer size of 65535.
host Specifies the host name or IP address of the remote
host to connect to.

Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.

你一定注意到了对-s:filename参数的说明。

在硬盘上建立一个script.txt,内容如下:
open
anonymous
user@the.net
cd public
put test.txt
bye
我的FTP服务器是用SERV-U架设的啊!


2007-5-6 19:19
查看资料  发送邮件  发短消息  网志   编辑帖子  回复  引用回复
vkill
金牌会员





积分 4103
发帖 1744
注册 2006-1-20
来自 甘肃.临泽
状态 离线
『第 5 楼』:   使用 LLM 解释/回答一下

搜索 "ftp"


2007-5-7 08:32
查看资料  发送邮件  访问主页  发短消息  网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: