dj9866 Posted July 29, 2004 Posted July 29, 2004 Is it possible to retrieve the creation date of a folder? Any help will be greatly appreciated. Thanks.
emmanuel Posted July 29, 2004 Posted July 29, 2004 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)
dj9866 Posted July 29, 2004 Author Posted July 29, 2004 (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 July 29, 2004 by dj9866
emmanuel Posted July 29, 2004 Posted July 29, 2004 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)
trids Posted July 30, 2004 Posted July 30, 2004 DOS to the rescue 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> InetpubYou 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
dj9866 Posted July 30, 2004 Author Posted July 30, 2004 Never gave DOS a thought. Thanks for the input.
Bartokv Posted July 30, 2004 Posted July 30, 2004 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now