Has anyone used pywin32 pywintypes.DosDateTimetoTime to convert a DOS packed date/time structure to a readable time format in Python?
I am unable find much documentation on how to use this function, what parameters are required and in what format.
I’m working on a script to extract files from an old DOS backup file, basically trying to replicate the old DOS restore command. I’m working on extracting files based off the format of a backup file found http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/restore/brtecdoc.htm
Thanks,
Jay
It takes two parameters (16 bit integers) which are identical to the first two parameters of
DosDateTimeToFileTime
You can see that in the source code PyWinTypesmodule.cpp for pywin32:
Those have to be of the format described in this MSDN link with the relevant parts copied below for convenience: