123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|456|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Getting a file's creation date

Sun, 28 Sep 2008, 15:55
Forklift_Fred
I'm expecting this to be a kernel32.dll type thing since I can't see anything within Blitz itself...

Simple question really, how do I determine how old a file is?
Based around the idea of keeping a list up to date and grabbing the latest edition online if the local file is over 30 days old.

I have a preferences file saved so I could add a "Last Updated" property but if the information's there in the system already why should I need to clog up my preferences?

Thanks to anyone who can help...


|edit| Actually, I could add the date in the list file itself I suppose... still not very elegant though... |edit|

-=-=-
Come rain or shine...
Sun, 28 Sep 2008, 16:03
Jayenkai
I was going to suggest that you could execfile "dir", send the output to a text file, and get it that way..
dir thisfile.here >output.txt
Then read that.
But.. Apparently Vista doesn't do that anymore.
*sigh*

-=-=-
''Load, Next List!''
Mon, 29 Sep 2008, 11:40
Phoenix
Fear not, for the knight in shiny armor comes and rescues you!

Put the .decls and the .dll in the userlibs folder, and then just use it like this:


I now realize that the name is a bit off since it actually checks for the date when it was last updated, but I can't be arsed changing that now.
Mon, 29 Sep 2008, 12:09
Eikon
Pass the full path of your file to this exe via command line and the date it was created is sent to c:\output.txt

eiksoft.com/wsc93151839/date.zip


Mon, 29 Sep 2008, 12:19
Forklift_Fred
Phoenix I now realize that the name is a bit off since it actually checks for the date when it was last updated, but I can't be arsed changing that now.


Actually, that should be enough... if not better than the creation date.

Thanks guys

-=-=-
Come rain or shine...