Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

vinodhan87

Auto-download file from SFTP to local drive on periodic basis

Hi,

I've set up a SFTP server on a remote computer, with username/password/port no. My team uploads documents to that SFTP on a periodic basis (10-20 mins once)

I currently use the WinSCP client on my home/office computer to download the uploaded files. However, this is done once every 20-30 mins manually.

Question:
How do i get my home/office computer (in sequence)
1.to run WinSCP perpetually
2.scour the remote FTP every 10 mins for a new file.
3. If no file found, do nothing
4. if new file found, download the file to a local directory (C:/Desktop/PersonalFolder)

I know i'd need a script to do this but have no clue where to get started.