Solved

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

Posted on 2004-04-22
6
1,316 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 125 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

733 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