简体   繁体   English

使用批处理文件的FTP

[英]FTP using Batch file

我想自动化在FTP网站“ uploads.google.com”上载文件的任务,我该如何实现

请看这里的例子

One of the example is depicted as follows : 示例之一如下所示:

  1. Prepare a file (say ftp_cmd.txt)with all the ftp commands to upload the files to our specific site as below: 使用所有ftp命令准备一个文件(例如ftp_cmd.txt),将文件上传到我们的特定站点,如下所示:

binary cd mput file.* 二进制cd mput文件。*

bye 再见

  1. Now create a batch file with the following content: 现在创建一个具有以下内容的批处理文件:

ftp -i -v -s: ftp -i -v -s:

ex: ftp -i -v -s:ftp_cmd.txt updates.google.com 例如:ftp -i -v -s:ftp_cmd.txt updates.google.com

Now, when you execute this batch file, it will put all files with format file.* to the specified directory. 现在,当您执行此批处理文件时,它将把所有格式为file。*的文件放入指定目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM