Variable for full month string

Post variable and regex related tips, questions.

Variable for full month string

Postby Tech Support » Tue Feb 23, 2016 10:49 am

I’m looking for a way to create variables in Automize to drop files to a folder based on date.
i.e. File.txt created today
need to drop into February 2016 folder.

File2.txt created 3/1/2016
Need to drop into March 2016 folder.

Let me know if you more questions.
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Re: Variable for full month string

Postby Tech Support » Tue Feb 23, 2016 10:50 am

That would depend on the exact monthly folder name..

is it 022016 etc? or Feb2016 or ?
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Re: Variable for full month string

Postby Tech Support » Tue Feb 23, 2016 10:50 am

The naming convention of the folder is :
2016 January
2016 February
2016 March

2016 December
2017 January
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Re: Variable for full month string

Postby Tech Support » Tue Feb 23, 2016 10:52 am

Use a copy task with entry for the Target folder:
$%DATES::YYYY MMMMMMMMM%$

The DATE variable only supports Short month names (Jan, Feb etc..)
The DATES variable supports full month names (use MMMMMMMMM)
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 6 guests

cron