Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WSHShell.RegWrite

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1335
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WSHShell.RegWrite
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WSHShell.RegWrite - 9/7/2004 9:52:29 PM   
  Jeanette

 

Posts: 1
Score: 0
Joined: 9/7/2004
From: Sweden
Status: offline
Hello! Hoping to get som help from some expert.

I'm writing a vbscript that should change a value in the registry.
I want the new value to be 2c 00 00 00. I'm using WSHShell.RegWrite and it works but I only get the value 2c 00.

I write:

WSHShell.RegWrite RegLocate, &H0000002c,"REG_BINARY"

It sets the value to 2c 00 in the registry. How to I get 2c 00 00 00 ?

Please help.
/Jeanette
 
 
Post #: 1
 
 Re: WSHShell.RegWrite - 11/2/2004 5:10:49 PM   
  OverAtTheBar

 

Posts: 12
Score: 0
Joined: 11/2/2004
From:
Status: offline
Simple, in place of &H0000002c use the actual base 10 number without " ". That will work fine. Just make sure you have the correct decimal equiv of the hex number.


You know where to find me,
Corey F.

(in reply to Jeanette)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WSHShell.RegWrite Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts