Jump to content

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>]

"DriverDate"

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

How do I turn it on a date?

Thank you

Link to comment
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)))
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...