Posted By:
AlessandroA_Garbagnati
Posted On:
Friday, March 30, 2001 10:10 AM
Hi,
You can easily change some file attributes of a file file using the
java.io.File class. For example, if you want to change the last modification date just use something like this:
...
File file = new File("C:\autoexec.bat");
System.out.println("Last Modified = " + file.lastModified());
file.setLastModified(60000);
System.out.println("Last Modified = " + file.lastModified());
...