Sign in to follow this  
Followers 0
dj9866

Folder creation date...

8 posts in this topic

Is it possible to retrieve the creation date of a folder? Any help will be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites



Have you read the helpfile? maybe looked under Function Ref and File, Directory and Disk Management?

FileGetTime.


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I have been through the help file numerous times and haven't found anything referencing a folder's creation date. FileGetTime returns an error code of 1 when used on a folder.

Edited by dj9866

Share this post


Link to post
Share on other sites

I have been through the help file numerous times and haven't found anything referencing a folder's creation date.  FileGetTime returns an error code of 1 when used on a folder.

damn, and I was feeling so damned smrat.

that sounds like functionality that really should be there... know c? I don't...


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Nor do I. Thanks.

Share this post


Link to post
Share on other sites

DOS to the rescue :ph34r:

You can do a DOS "dir /ad" .. which gives this kind of thing:

03-07-30  14:55         <DIR>          Acrobat3
03-07-30  16:24         <DIR>          ADOBEAPP
03-09-01  16:36         <DIR>          BDE32
02-11-08  13:40         <DIR>          Desktop
03-03-17  16:31         <DIR>          IDAPI
02-12-04  12:47         <DIR>          Inetpub

You can then cleverly ..

  • Redirect this to a text file and read it back from your script.
  • Or pipe the command to the clipboard which you can then parse in your script (more on this here)
HTH :(

Share this post


Link to post
Share on other sites

Never gave DOS a thought. Thanks for the input.

Share this post


Link to post
Share on other sites

Heh heh, DOS is awesome...

Just be careful: some versions of the comspec act differently on each platform. (ie: "ping" acts differently in 95, 2000, and XP -- as does "dir" and various other commands/executables.) Sometimes the return codes will be different/nonexistent, the output fields may not be the same, or some other nuance will drive you crazy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0