REG_DWORD value not an integer? Help!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Thanks Mattias! That was just what I needed.

Mattias Sjögren said:
"a" is just the hexadecimal representation of the number 10, so simply
specify 10 instead.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top