Daily Schedule to move file with different name.

This forum is not monitored by the SmartFTP staff. To contact technical support see KB: How to request technical support.
haystacz
Posts: 3
Joined: Wed Jul 01, 2009 5:08 am

Daily Schedule to move file with different name.

Post by haystacz » Wed Jul 01, 2009 5:15 am

Hi,

I would like to know if it's possible to create a scheduled job that will move a file which has a different name every day.

E.g. Request.YYYYMMDD - (changes daily) from local to FTP server.

Thanks for any help.

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Daily Schedule to move file with different name.

Post by mb » Wed Jul 01, 2009 11:44 am

Hello ..

This article should help: https://www.smartftp.com/support/kb/how- ... f2608.html

In your case just use the format specifiers in the source path.

Regards,
Mat

haystacz
Posts: 3
Joined: Wed Jul 01, 2009 5:08 am

Re: Daily Schedule to move file with different name.

Post by haystacz » Thu Jul 02, 2009 12:43 am

Thanks Mat - that worked like a charm. I will now purchase a license key.

Cheers.

haystacz
Posts: 3
Joined: Wed Jul 01, 2009 5:08 am

Re: Daily Schedule to move file with different name.

Post by haystacz » Thu Jul 02, 2009 1:30 am


Hello ..

This article should help: https://www.smartftp.com/support/kb/how ... f2608.html

In your case just use the format specifiers in the source path.

Regards,
Mat


Mat - Is there anyway that I can create a scheduled job to collect a file with an unknown file name and file extension? Wildcard maybe?

More info - the request.YYYYMMDD file I send to the FTP will generate a Reply.YYYYMMDD

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Daily Schedule to move file with different name.

Post by mb » Thu Jul 02, 2009 2:00 am

Take a look at the following article and combine it with the last article:
https://www.smartftp.com/support/kb/how- ... f2574.html

And at last you could write a very small script (less than 30 lines) using the FTP Library that does it as well.

Regards,
Mat

lafonj
Posts: 4
Joined: Sat Jul 25, 2009 4:57 pm

Re: Daily Schedule to move file with different name.

Post by lafonj » Sat Jul 25, 2009 5:01 pm

I need to do the opposite. I want to schedule a daily transfer where the source files are timestamped daily. Since the filename changes every day, I am not sure how to set that up in the scheduler. The files are also in the root folder of the FTP and I haven't figure out how to move all the files from the root folder and just use exclusions. Any ideas?

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Daily Schedule to move file with different name.

Post by mb » Mon Jul 27, 2009 9:51 pm

I recommend the FTP Library for this purpose: https://www.smartftp.com/ftplib

lafonj
Posts: 4
Joined: Sat Jul 25, 2009 4:57 pm

Re: Daily Schedule to move file with different name.

Post by lafonj » Wed Jul 29, 2009 4:07 pm


I recommend the FTP Library for this purpose: https://www.smartftp.com/ftplib

Does the client version not have wildcard support or can it not do this? The FTP library is a little out of reach for me right now price wise.

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Daily Schedule to move file with different name.

Post by mb » Wed Jul 29, 2009 7:44 pm

You can use the exclusion/inclusion filter which supports wildchar and regular expressions. Please take a look at this article:
https://www.smartftp.com/support/kb/how- ... f2574.html

Regards,
Mat

lafonj
Posts: 4
Joined: Sat Jul 25, 2009 4:57 pm

Re: Daily Schedule to move file with different name.

Post by lafonj » Wed Jul 29, 2009 7:49 pm

That would work fine if I could figure out how to add all the files in the root directory without adding them by name, since there is not a folder name to reference. Any way to just queue everything in the ftp root folder to sync and then I could use the exclusion rules?

Post Reply