想编个批处理文件,能够进行打包和ftp传送,怎么实现?

cauiot 2003-10-17 10:57:21
@echo off

cd d:\ttt
rar a -r -agDD-MMM-YY back
ftp 202.205.84.250

rm *.rar


#///////////////////////////////////////
ftp传送不知道该怎么使用命令行?
巨郁闷!
...全文
79 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
cauiot 2003-10-23
  • 打赏
  • 举报
回复
呵呵,一人一半
icuc88 2003-10-17
  • 打赏
  • 举报
回复
呵呵,总有一天,我会让你们先回答问题的。
kbkingbird 2003-10-17
  • 打赏
  • 举报
回复
Using FTP Batch Scripts
适用于
This article was previously published under Q96269
SUMMARY
FTP (file transfer protocol) is a file transfer utility commonly used with UNIX systems.

FTP is capable of using scripts (lists of commands from external files). The following example demonstrates a script that opens a connection to IP address 11.11.11.11, logs on to the host as a guest with the password "guest," uploads the File1 file, and then quits:
open 11.11.11.11
user
guest
guest
put file1
quit

MORE INFORMATION
You must use the -s option for FTP to read this file under Windows. If the previous script was in a file called Test.scr, you can start the script by typing:
ftp -s:test.scr

You can specify the host name in the command line and then use the script to process the login. For example, if you use the following command line
ftp -s:test.scr 11.11.11.11

the script file should read as follows:
user
guest
guest
put file1
quit

However, if the FTP host implements automatic login, this command will not work. To turn off automatic login, use the -n switch in the command line as follows:
ftp -n -s:test.scr 11.11.11.11

The information in this article applies to:
Microsoft Windows XP Professional
Microsoft Windows XP Home Edition
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Datacenter Server
Microsoft Windows NT Server 3.1
Microsoft Windows NT Server 4.0
Microsoft Windows NT Workstation 3.1
Microsoft Windows NT Workstation 4.0
Microsoft Windows 98
Microsoft Windows 95
Last Reviewed: 6/3/2003 (3.0)
Keywords: kbinfo kbinterop KB96269


方便楼主呵呵~~借链接发一贴~~~^_^~~~icuc88就是强~~
icuc88 2003-10-17
  • 打赏
  • 举报
回复
这是我经常干的事情,哈哈。
icuc88 2003-10-17
  • 打赏
  • 举报
回复
http://support.microsoft.com/?kbid=96269
Using FTP Batch Scripts


哈哈,赚了。

6,849

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧