i'm coding a tool to save some files on a USBKey, generaly formated in FAT32.
But CopyFile() and SetFileDate() don't write correctlye the modified date of files.
Code: Select all
EnableExplicit
Global USBVolume$ = "G:\"
Global File$ = USBVolume$ + "Test.txt"
CreateFile(0, File$)
CloseFile(0)
Global date.q = Date(2024, 05, 06, 10, 01,11)
SetFileDate(File$, #PB_Date_Created, Date)
SetFileDate(File$, #PB_Date_Modified, Date)
Debug FormatDate("%yyyy/%mm/%dd %hh:%ii:%ss", Date)
Debug FormatDate("%yyyy/%mm/%dd %hh:%ii:%ss Created", GetFileDate(File$, #PB_Date_Created))
Debug FormatDate("%yyyy/%mm/%dd %hh:%ii:%ss Modified", GetFileDate(File$, #PB_Date_Modified))
RunProgram(USBVolume$ )
but on FAT32 i have this results :
Code: Select all
2024/05/06 10:01:11
2024/05/06 10:01:11 Created
2024/05/06 10:01:12 Modified
Thank's


