Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Kevin Rood
2014-06-10T18:18:31Z
Has anyone played with a way to run a task as if the system date were a different date than it actually is?

We call our application via an Execute task with arguments, but are in need of a way to "fake" our application into thinking the system date is some day last week to get it to exclude some data. So, ideally, a VC date variable could be used to feed the date somewhere.

The only thing I've found is this small executable
http://www.nirsoft.net/utils/run_as_date.html 
which looks like it could work, interrupting API calls (GetSystemTime, GetLocalTime, GetSystemTimeAsFileTime) but before I go installing that just wanted to see if there might be a better way.

Thanks!

Kevin Rood
Sponsor
Forum information
bbusse
2014-06-11T12:57:33Z
Moved topic to Feature Requests.

I actually completely agree with this, it would be nice to be able to do this. We have many jobs that have variables that use the data/time (specifically the date, though in this case) for the folder name where files will be or will be moved to. If something went wrong external to VisualCron and we need to run yesterday's files, i can't run the job... I have to manually process everything or edit the job so it uses date variables that are -1 day, etc.... And that only works if you're using a VC variable for dates.

Brian
Scroll to Top