Possible Duplicate:
How to discover a File's creation time with Java?
I want to get created date and time of file in java. How can i do it ?
Thanks in advance !!!!
Possible Duplicate:
How to discover a File's creation time with Java?
I want to get created date and time of file in java. How can i do it ?
Thanks in advance !!!!
You have cmd /c dir fileName command for doing this :
Try using
Runtime runtime = Runtime.getRuntime();
Process output = runtime.exec("cmd /c dir "+fname);
Process the output of runtime and get the desired stamp.