Quote:
> Hello,
> Wondering if someone could help me convert a Hex number to an Int
> value.
> What I want to do is read Hex information from the registry and
> convert it to its reciprical ascii character. to do that I would need
> to convert it to an int value so that it could be used in the CHR()
> function.
Hi
See this article:
Subject: Re: How to RegRead a Binary Key
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-07-12 18:32:23 PST
http://groups.google.com/groups?selm=3D2F81E2.3135AC97%40hydro.com
See 'Function stRegBinary' here:
http://groups.google.com/groups?selm=3BC2342D.2E99D197%40hydro.com
A couple of articles that might interest you:
Convert a binary data (BinaryRead) to a string by VBS
http://www.pstruh.cz/tips/detpg_binarytostring.htm
Convertion between binary and string data.
http://www.pstruh.cz/help/regedit/pa26.htm
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and a ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter