Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? age of file in seconds

Oct
356
2
Hello -- I would like to test if a file is an hour or more old.

What is the best way to test for this?

thanks

fpe
 
I don't know about "best" but (using the file's WRITE timestamp) ...
Code:
if %@eval[(%@makeage[%_date,%_time] - %@fileage[test.csv.txt,w]) / 10000000] gt 3600 echo It's old
 

Similar threads

Back
Top