Jump to content
Sign in to follow this  

How to transform binary datatype in date

Recommended Posts


Hi guys,

I need to read the registry keys below, which contains the dates of the printer drivers:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\<printer name>]


I use the command "RegRead", but it returns a binary data type.

How do I turn it on a date?

Thank you

Share this post

Link to post
Share on other sites

I looked at my system, but a printer driver on my system looks like the date is encrypted. When I double-click the value in the registry, the string is not actually a date. So, I don't know if I will be able to help you. First, the data is in Hex format. I think it is also in binary, too, but I am not sure. This code returned something for me, but it was not a date. Again, it looks like this particular driver date is in an unknown format.

#include <String.au3>
$i = regread("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPrintEnvironmentsWindows NT x86DriversVersion-3HP Color LaserJet PS", "DriverDate")
msgbox(0, "", _HexToString(BinaryToString($i)))

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this