windowsfilesystemsntfsfat32

How can I create a file with invalid Windows timestamps?


I'd like to create a file with an invalid created/modified/accessed timestamp to use in unit tests to ensure that my application can handle files with invalid timestamps. It's a Windows application written in C# that could run on both NTFS and FAT32 filesystems.


Solution

  • This is not possible.