I guess there is no way in java to get and set accessI do not believe there is an exposed API (at least not in Windows) which allows one to set the last accessed time of a file. Obviously at least the OS can reset it (as it is doing when you open the file thru any means), but I doubt this is exposed for applications (not even in C, C++ or possibly even lower-level Assembler) to monkey with.
time of a file.
In that case, I thought I would invoke a perl script
from within my java program to get the job done.
However, for that purpose the users will need to have
perl installed on their machine, am I right ???
If so, then which other programming or scripting
language can I use (on windows) so that users do not
need to install anything else ?