| | |
Get File creation Date
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
No, at least not when using the standard library because in *nix, the creation time isn't stored anywhere. If you are running on a windows box, you have two options:
- spawn a shell process which fires the command 'dir /a' and extract the creation time [easiest]
- Use JNI, maybe something like FileTimes library
- spawn a shell process which fires the command 'dir /a' and extract the creation time [easiest]
- Use JNI, maybe something like FileTimes library
Last edited by ~s.o.s~; Dec 9th, 2008 at 11:44 am.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Output a file's type and created date (Java)
- File Creation Dates: Recoverable? (Windows Vista and Windows 7)
- Open In New Window Php (PHP)
- reading of file date (Java)
- "Cannot delete file: Cannot read from the source file or disk." (Windows NT / 2000 / XP)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- Browser redirect/about:blank/other problems... (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: reading a part of a txt file
- Next Thread: validating password
| Thread Tools | Search this Thread |
2dgraphics android api apple applet application arguments array arrays automation banking binary binarytree bluetooth capture chat chatprogramusingobjects class classes client code color component count database derby design eclipse eclipsedevelopment encryption error event exception fractal game givemetehcodez graphics gridlayout gui html ide if_statement image input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list loop macintosh map method methods midlethttpconnection mobile netbeans newbie object os print printing problem producer program programming project projectideas read recursion reference replaysolutions ria scanner screen server set size sms sort sourcelabs sql stop string swing threads transforms tree ui unicode validation windows






