简体   繁体   中英

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:

binary cd mput file.*

bye

  1. Now create a batch file with the following content:

ftp -i -v -s:

ex: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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