Home » Questions » Computers [ Ask a new question ]

FTP BAT file - Windows Scheduled Task

FTP BAT file - Windows Scheduled Task

Is it possible to create a scheduled task in windows, that connects to an FTP site, and downloads all the files and folders within the root directory (or specified folders in the root directory) - for example \httdocs and \subdomains to a local directory?

Asked by: Guest | Views: 23
Total answers/comments: 1
Guest [Entry]

"See my question for the correct script; thanks @djhowell - your script got me started:

Here's the working script:

open ftp.yoursite.com
ftpUsername
ftpPassword
lcd C:\Temp\OrWhatever
cd /DirectoryOnFtpServer
prompt
mget *.*
quit

lcd - change LOCAL directory
cd - change REMOTE directory
mget *.* - get all files in directory"