HiTek Software  Home
 
Subject How do I use a variable to specify yesterday
Version 5.x+
Date   07/22/2007
Message I am trying to automate copying IIS web server logs. The formate is exyyppdd.log. I want to be able to ftp the log file from the previous day. How do I use a varible to specify yesterday
Reply1 Hi, 
Thanks for using Automize. You should use the DATE for the exyypp' part and then the DATEADD variable for the 'dd' part.
EXAMPLE: 
filename = ex$%DATE::yypp%$$%DATEADD::dd::-1%$.log 
The DATEADD variable was added in 5.43. You are using 5.41, so you would need to use the latest patch update for 5.x, via our support page:
http://www.hiteksoftware.com/support.htm  
--   Hitek Software
Reply2
Reply3
Reply4
Reply5