WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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 00

Somehow 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 00

You 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:

  1. Break it up into two byte checks
    	CF 07
    	07 00
    	02 00
    	1b 00
    
  2. reverse the order
    	07cf
    	0700
    	0002
    	001b
    
  3. Convert to decimal (See WIL extender)
    	1999
    	7
    	2
    	27
    
  4. Guess at meaning
    	1999 year
    	7 month
    	2 no idea
    	27 date
    
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.

See ItemExtract to pick off the pieces from a MULSZ.

For further details see tech article Last time ScanDisk and Defrag performed


Article ID:   W14251
Filename:   Date format of Last Scandisk and Defrag.txt
File Created: 2017:08:29:11:51:02
Last Updated: 2017:08:29:11:51:02