rishi
rishi

Reputation:

FTP using Batch file

i want to automate the task of uploading of a file at FTP site "uploads.google.com" how can i achive this

Upvotes: 0

Views: 1959

Answers (2)

Roopesh Majeti
Roopesh Majeti

Reputation: 554

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.

Upvotes: 1

ghostdog74
ghostdog74

Reputation: 343067

please see here for example

Upvotes: 1

Related Questions