Guest_imported
New member
- Jan 1, 1970
- 0
Hey,
how can I change the creation date/time of a directory; I tried the following, but it doesn't work
("SetFileTime" always needs the handle from above which weirdly is invalid)
Tim
how can I change the creation date/time of a directory; I tried the following, but it doesn't work
Code:
if (CreateFile('C:\test\',
GENERIC_READ + GENERIC_WRITE,
FILE_SHARE_READ,
nil,
OPEN_EXISTING,
FILE_ATTRIBUTE_DIRECTORY+FILE_FLAG_BACKUP_SEMANTICS,
0) = INVALID_HANDLE_VALUE) then
ShowMessage('Invalid handle');
("SetFileTime" always needs the handle from above which weirdly is invalid)
Tim