Rename using previous day's variables

Post variable and regex related tips, questions.

Rename using previous day's variables

Postby Jamie » Fri Jan 09, 2015 8:47 am

User support request:
I need another help from you where I need to save the attached file with the date yesterday with the following format:
Save to :
P:\AUTO\$%DATE::YY%$\Ch\$%DATE::ppyy%$\$%DATEADD::ppdd::-1%$ ( it should be 0108 – 2digit month and 2 digit day) but it is saving to
IHKB_Rename::TargetDirectory = P:\AUTO\2015\Ch\0115\108

Then rename the file to : IHKB_$%DATEADD::ppdd::-1%$.pdf.
Jamie
Site Admin
 
Posts: 115
Joined: Mon Aug 14, 2006 8:16 am

Re: Rename using previous day's variables

Postby Jamie » Fri Jan 09, 2015 8:48 am

The DATEADD variable you entered is incorrect. It does not take an output format.
use the DATEADDX instead:
$%DATEADDX::ppdd::dd::-1%$
Jamie
Site Admin
 
Posts: 115
Joined: Mon Aug 14, 2006 8:16 am


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests

cron