Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WSH/VBScript - How do I add a QWORD value to the registry

Posted on 2004-04-22
6
Medium Priority
?
1,402 Views
Last Modified: 2012-05-04
I need to add a QWORD value to the registry, and have only found a WSH method to write up to DWORDS (objReg.RegWrite) to the reg.  I need to add a QWORD binary value of 0.  
0
Comment
Question by:swrona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 10889758
Alas, MS has seen fit to make it more difficult to create non-reg_dword, non-reg_sz registry entries.  For anything other than reg_sz and reg_dword, you'll have to make a call to RegSetValueEx().

Unfortunately, not being a VBSer, I don't know if API calls are possible.
0
 

Author Comment

by:swrona
ID: 10890480
RegSetValueEx is a VB method, not VBS.  8^(
0
 
LVL 22

Expert Comment

by:cookre
ID: 10893043
Just thought of another possibility - make a .reg file then import it.

For example:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\EE\Testy]
"woohoo"=hex:0f,fa,b0

creates a REG_BINARY value of three bytes.

0
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 10895435
Or, for a 64-bit value, for example

"woohoo"=hex:01,00,00,00,00,00,00,00

for a little-endian 64-bit 1
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question