Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

717 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