Category: ASP

Windows Server FTP batch File.

Copy below into a file called ftp.txt and call it from command line. Replace the text in square brackets

Text File

open [host
[username
[password
:--- FTP commands below here ---
lcd  [localfolder
cd [remotefolder
mput "*.*"
disconnect
bye

Call from command line:

FTP -v -i -s:ftp.txt

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count: