Add support to change timestamp also for directories
Status: Beta
Brought to you by:
mdutra
It would be nice to add support also for changing directories.
If you change the following statement, the handle will be valid also for directories:
if ((hFile = CreateFile(argv[2], FILE_ALL_ACCESS, 0, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL)) == INVALID_HANDLE_VALUE)
throw GetLastError();
See attached file that I have built using Visual Studio 2005 on Windows XP SP2.
Regards
Fausto
Modified source file