forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@FILE and File or folder creation date

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 179
Location: Netherlands

PostPosted: Tue Aug 11, 2009 10:38 pm    Post subject: @FILE and File or folder creation date Reply with quote

Using the @FILE function with the pseudo attribute T will return the date of the folder or file. I noted however that the date it returns is the modified date. What I need is the creation date of the file or folder.
Does anyone know how to get the creation date of a file or folder in vds?

Jan
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Aug 12, 2009 8:56 am    Post subject: Reply with quote

As far as I remember the latest version of my TimeDate.DLL has the ability to get creation time, last access,
and last write of a file.
This version hasn't been publicly released yet but you can have it if you want.

BTW, I don't presently remember if the function will handle directories as well.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 179
Location: Netherlands

PostPosted: Wed Aug 12, 2009 11:26 am    Post subject: Reply with quote

Thanks Dread!
I completely forgot about that function in your TimeDate.dll.
(I have version 1.8.0)
Unfortunately it only supports files and I need it for folders.

One more thing about this function:
Even after having set OPTION DECIMALSEP,"." the function @timedate(GetFileDT,FileName) still returns a value with a comma in it instead of a point.


Crying or Very sad
Jan
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Aug 12, 2009 1:29 pm    Post subject: Reply with quote

Hi there, Jan

You can tell the DLL which separator to use:
@timedate(SetDecSep, [new local decimal separator of the DLL])

You will need the new version 1.9 of the DLL to obtain creation date etc. and to work with directories.
Stay tuned - I will post the new release now Wink

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Aug 12, 2009 1:45 pm    Post subject: Reply with quote

That's it: version 1.9 has been released on www.vdsworld.com.

News:
* DLL built with a newer Delphi version.
* Internal operation of a couple of functions tweaked a bit.
* Function GetFileDT expanded to obtain also LastAccess and Creation time.
* Function GetFileDT should also work with directories
* Help file supplied in HTML help format

Razz

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 179
Location: Netherlands

PostPosted: Wed Aug 12, 2009 6:35 pm    Post subject: Reply with quote

Dear Dr. you're the greatest!
This is first class service ......... a new version on request in just a day.
Now who else can do that?

Gonna use the new dll tomorrow at work but knowing the quality of your dll's I'm sure it's going to be just perfect.

Very Happy
Jan
Back to top
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 179
Location: Netherlands

PostPosted: Thu Aug 13, 2009 9:30 am    Post subject: Reply with quote

Tested the new dll and - as I expected - it works like a charm.
Thanks again for the quick service.

Very Happy
Jan
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Aug 13, 2009 9:52 am    Post subject: Reply with quote

Hi there!

Thanx for the nice comments.
I'm glad that it worked out Wink

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 622
Location: Indiana

PostPosted: Tue Sep 08, 2009 8:36 am    Post subject: Reply with quote

Jumbo thanks from me also.. been needing this too.

Appreciate your perfection as well Cool
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group