"Execute" as a different system date - VisualCron - Forum

Community forum

Kevin Rood
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
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.


Kevin Rood
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.

Scroll to Top