The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Way OT: VBScript Question


  • To: ukha_d@xxxxxxx
  • Subject: Way OT: VBScript Question
  • From: "moogman_98" <pmurgatroyd@xxxxxxx>
  • Date: Fri, 22 Mar 2002 16:20:24 -0000
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Hi All,

I know this is so OT its untrue but I need help (and I'm sure there
must be someone out there in UKHA world who can help me)

I am trying to write a piece of VBScript that writes a HEX value into
the registry... I'm not having much success... :-(

This is what I have so far:

Dim WshShell, bKey Set WshShell = WScript.CreateObject
("WScript.Shell")
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001
\Control\Class\{4D36E96D-E325-11CE-BFC1-08002BE10318}\0000
\default",3c0000001e000000000000000000000093030000,
"REG_BINARY"

Now, for any other value, this would work (I know it does 'cos I've
tried it) but for this long HEX value it just doesnt...

Other people have said to me that I need to create an array with
single integers, then pass the array to the RegWrite method and that
would work... but thats just gobbledygook to me I'm afraid!

Any help/advice is greatly appreciated!

Thanks all and sorry for the OT nature

Paul






Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.