Monitor small amounts of time with IfFileChanged>

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Monitor small amounts of time with IfFileChanged>

Post by migro » Fri Mar 16, 2018 6:15 pm

Hi Marcus,

very nice function. But what when I want to monitor if a file changed in the last second or 2-5 seconds?
Do I have to use as range: 0.00001157407?
The range in days ist not really comfortable to monitor smaller amounts of time.
regards
migro

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Monitor small amounts of time with IfFileChanged>

Post by Marcus Tettmar » Fri Mar 16, 2018 6:40 pm

IfFileChanged only works with a range of days. It doesn't work at the level you want.

FileTime returns the time to the second, so you may be able to poll that.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Re: Monitor small amounts of time with IfFileChanged>

Post by migro » Fri Mar 16, 2018 9:26 pm

Thanks Marcus, this will work for me.
regards
migro

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts