Jump to content

Folder creation date...


Recommended Posts

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
Link to comment
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)

Link to comment
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 :(
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...