Date format of Last Scandisk and Defrag
Keywords: Date format
Question:
Microsoft stores the date value for the last time Defrag and Scandisk have run. The format is: CF 07 07 00 02 00 1b 00Somehow that translates into July 27, 1999. Anybody have a clue how to translate that...
I want to create a utility in winbatch that reads the date and kicks off Scandisk and Defrag if the date is more than 30 days...
Answer:
CF 07 07 00 02 00 1b 00You are fortunate. 07CF is 1999, 07 is July, 1b is 27. Need more data to find out what 02 means. Here's how to deal with it:
See the WilX extender (or tech support database) on info on how to convert hex to decimal. (I assume it is a multsz type registry item. If it is a DWORD there are different ways to break it up and put it together.
- Break it up into two byte checks
CF 07 07 00 02 00 1b 00- reverse the order
07cf 0700 0002 001b- Convert to decimal (See WIL extender)
1999 7 2 27- Guess at meaning
1999 year 7 month 2 no idea 27 dateSee ItemExtract to pick off the pieces from a MULSZ.
For further details see tech article Last time ScanDisk and Defrag performed
Article ID: W14251Filename: Date format of Last Scandisk and Defrag.txt