473,396 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

REG_DWORD value not an integer? Help!!

Hello,
I am trying to use VBScript to set an entry in the registry. Here is a
snippet of what I am trying to do:

WshShell.RegWrite "HKEY_CLASSES_ROOT\Powerpoint.Show.8\BrowserFlags" , "a"
,"REG_DWORD"

Problem is that this doesn't work unless I change the "a" to a number. I'm
assuming that you can only use integers for REG_DWORD values in VBScript.
How can I set a value in the registry which is a REG_DWORD but not an integer.

Thanks,
David
Nov 21 '05 #1
2 5625
Problem is that this doesn't work unless I change the "a" to a number. I'm
assuming that you can only use integers for REG_DWORD values in VBScript.
Correct.

How can I set a value in the registry which is a REG_DWORD but not an integer.


"a" is just the hexadecimal representation of the number 10, so simply
specify 10 instead.
Mattias

Nov 21 '05 #2
Thanks Mattias! That was just what I needed.

"Mattias Sjögren" wrote:
Problem is that this doesn't work unless I change the "a" to a number. I'm
assuming that you can only use integers for REG_DWORD values in VBScript.


Correct.

How can I set a value in the registry which is a REG_DWORD but not an integer.


"a" is just the hexadecimal representation of the number 10, so simply
specify 10 instead.
Mattias

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: meyvn77 | last post by:
My update query updates about 50 columns and they all have the same format: (Im using ADP to interact with the SQL Server) UPDATE dbo.GIS_EVENTS_TEMP SET VEH1TYPE = (SELECT VEHICLETYPE...
3
by: Amy Snyder | last post by:
For what I thought would be a very simple task is turning out to be very frustrating. I have been trying for a day now to extract checkbox values from my form and nothing is working. On my form...
1
by: ypul | last post by:
How can I assign dbnull.value to and integer variable in asp.net? Private Active As Integer my code checks for 3 values of "Active" Variable (null,0,1)
1
by: SSPoke | last post by:
Hello I attempted to make one in VB.NET but it dind't work at all.. Private buffer() As Byte 'OUTPUT OF BITS goes here Dim bitPosition as Integer = Buffer(i) * 8 'current position of Buffer...
3
by: PerumalSamy | last post by:
Hi all , How can we restrict user to enter integer alone in textbox (like using ascii code restriction in keypress event in VB). since keypress event not available for textbox property in asp.net...
3
by: luthriaajay | last post by:
Why is my xpath giving null for the the flwg <Configuration> <Listener.Whiteboard> <AQListener> <Product>A</Product> <Message.Class>XMLMessage</Message.Class> <Database> ...
4
natalie99
by: natalie99 | last post by:
Hi All :) I am trying to stipulate rules for the return of a pricing value in Access. I know this should be very easy, I simply cannot seem to make my expressions work! The two tables have...
9
by: Snaked | last post by:
<?php //this function is the responsible of modifying the player in the table function modify_table() { //first the query try to get a row where the name of the player is = to the name in the...
12
by: hacksign23 | last post by:
Well I'm declaring an array with text length, so i did int i; but that didn't work so i did int q = this->textBox1->textlength; int i; but neither did that work.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.