[fpc-pascal] changing datetime of directories under DOS/Win

Michael Van Canneyt michael at freepascal.org
Tue Apr 22 10:47:56 CEST 2008



On Tue, 22 Apr 2008, anonymous anonymous wrote:

> 
> I'd like to ask if there is any way to change the timestamp of directories under DOS/Win.
> 
> I'm writing a small command-line utility for file/dir manipulations. The only unit I've used is "sysutils". It has "fileage" and "filesetdate". Under DOS, these functions work well for files, but not for directories. However, they
> produce no problem under Linux.
> 
> I guess this problem may be due to different OS designs, but I'd like to have the functions work under DOS/Win.

I've never seen a call to set the time stamp of a directory under
DOS/Windows, it may simply not be supported under these OSes.

Michael.



More information about the fpc-pascal mailing list