WS_FTP Pro - Send Unique Option for a Scheduled Job

Hello,

I am using WS_FTP Pro to download .jpg files and would like WS_FTP Pro to provide a unique name each time it downloads the .jpg files rather than overwriting them.  I'm able to do this if I manually download the files and use the Send Unique Option.  I would like to schedule a job to do this task at regular intervals.  The Send Unique Option doesn't work when the job is scheduled and the .jpg files get overwritten each time.  

Does anyone know how to get this to work with the the Scheduler in WS_FTP Pro or know of another FTP client that I can use to accomplish this?

Thank you.
COV-WebmasterCity Of VancouverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexPaceCommented:
Are you downloading one file with a specific name over and over like an image from a camera or are you downloading a set of files (*.jpg) where some might be new and some might not on any given run?
0
COV-WebmasterCity Of VancouverAuthor Commented:
We are downloading several files with a specific name over and over.  They are traffic camera images and there are not any new filenames in each run.
0
AlexPaceCommented:
Do you download more than once per minute?
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

COV-WebmasterCity Of VancouverAuthor Commented:
No, the images are downloaded every 20 minutes.
0
AlexPaceCommented:
Here is a Robo-FTP script that downloads a file every twenty minutes.  It makes a unique file name by adding the date and time.  Since the timestamp is accurate to the minute this should be unique on a 20 minute cycle:

WORKINGDIR "c:\local\download\folder\" 
:start
FTPLOGON "camera.traffic.com" /user="UserID" /pw="secret" 
FTPCD "/photos"  ;; change into subfolder on FTP server
SET UniqueName = "image_" + %datetime + ".jpg" 
RCVFILE "image.jpg" /as UniqueName
FTPLOGOFF
PAUSE /for=1200  ;; 1200 seconds is 20 minutes
GOTO start

Open in new window

If you have multiple files to download just copy the line when you make the unique name and the RCVFILE download line... so you could download 3 files like this:
WORKINGDIR "c:\local\download\folder\" 
:start
FTPLOGON "camera.traffic.com" /user="UserID" /pw="secret" 
FTPCD "/photos"  ;; change into subfolder on FTP server
SET UniqueName = "image_" + %datetime + ".jpg" 
RCVFILE "image.jpg" /as UniqueName
SET UniqueName = "image2_" + %datetime + ".jpg" 
RCVFILE "image2.jpg" /as UniqueName
SET UniqueName = "image3_" + %datetime + ".jpg" 
RCVFILE "image3.jpg" /as UniqueName
FTPLOGOFF
PAUSE /for=1200  ;; 1200 seconds is 20 minutes
GOTO start

Open in new window


It is a loop that cycles every 20 minutes so you'd set it up to run as a windows service and your good to go... or you could strip out the looping lines and just have it launch, download and terminate and use a Windows Scheduled Task on a 20 minute schedule.  

If you don't have Robo-FTP you could probably use that same idea to work with whatever scripting is built into your FTP client.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
COV-WebmasterCity Of VancouverAuthor Commented:
Thanks very much!  We will give that a try and see if it works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.