is there possible to get and change file time at milliseconds level?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wer
Posts: 57
Joined: 29 Nov 2022, 21:28

is there possible to get and change file time at milliseconds level?

Post by wer » 14 Feb 2023, 06:14

thanks in advance for help

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: is there possible to get and change file time at milliseconds level?

Post by swagfag » 14 Feb 2023, 09:18

not with any ahk built-in functions. u can dllcall SetFileTime

RussF
Posts: 1311
Joined: 05 Aug 2021, 06:36

Re: is there possible to get and change file time at milliseconds level?

Post by RussF » 14 Feb 2023, 09:34

From what I've read, NTFS stores all of its file times to a resolution of 100 nanoseconds, whereas FAT32 (the usual thumb-drive format) only has a resolution of about 2 seconds (except for file create, which resolves to about 10 milliseconds). Someone more versed than I could probably come up with a DLL call to the Win32 API to get those times.

Russ

Post Reply

Return to “Ask for Help (v1)”