Folder with varying date based name
User Support Request
We currently need to configure an Automize job to copy the contents of a folder to an alternative location. Sounds easy but the folder name changes each day (Automatically created via an in house developed program). The folder name will start with the same naming convention, followed by the date and finally a coding at the end.So the folder name that we want to copy from will always begin with “NIGHT_S500000003_D”the date then follows “20161128” with a nine digit code on the end beginning with T.
If we put the full name into the Source directory and manually run the job it will work, however the date and 9 digit code on the end of the folder name changes each day, this means the job will fail going forward.
Is there an option to use a wildcard in order to ignore the 9 digit code at the end of the folder name? Only run the task to look into folders with the same date that the task is running on? $%DATE::YYppdd%$.........
We aim to run the task around 2:00 in the morning as the folder is usually created just after midnight every night.
Your help would be very appreciated.
Tech Support
Try the following settings:Source directory = D:\AutomizeTesting
Folder path filter = NIGHT_S500000003_D$%DATE::YYppdd%$T
User Response
I have tried your suggestion and it kind of works – many thanks. However, it copies the midnight folder and the correct files within it. Is there a way to exclude the folder but just copy the files? The copied files are within the nightXXX folder. We just the want the files not the folder.
Tech Support
Try the following instead:
Subdirectory Loop task: Task Title = subdirloop task to run = copyfiles
directory = D:\AutomizeTesting
Subdirectory name filter = NIGHT_S500000003_D$%DATE::YYppdd%$T Option = Run Task if subdirectory exists
copyfiles task:
Source directory = $%subdirloop::CurrentSubdirectoryPath%$ filename = (blank)
folder path filter = (blank)
As always, it is a pleasure doing business with you. We are very happy with the capabilities of the new version of Automize and are looking forward with moving ahead with our first production system based on this software. –Automize Enterprise User
Thanks for your timely response. You make a great product, and we're integrating it more and more into our daily production activities. I will try out these FTP suggestions as you've outlined. –JaSFTP User
Just wanted to compliment you folks on a great product. your product is working flawlessly! I'll definitely be purchasing it, and telling every other "IT type" I know about it! Thanks so much. –Automize User
Your program was exactly what I was looking for...you have all the features that I require; all in one program!!–AbleFTP user