Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Deleting REG_SZ data value

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Deleting REG_SZ data value
  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 >>
 Deleting REG_SZ data value - 10/21/2006 12:39:48 AM   
  azfar

 

Posts: 1
Score: 0
Joined: 10/21/2006
Status: offline
I have a key and I want to delete its data value by wsh or vbs

HKEY_CURRENT_USER\Software\Valve\Half-Life\Settings\User Token 2

reg type is REG_SZ
 
 
Post #: 1
 
 RE: Deleting REG_SZ data value - 10/22/2006 6:57:47 AM   
  DiGiTAL.SkReAM


Posts: 1183
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
CreateObject("WScript.Shell").RegWrite "HKEY_CURRENT_USER\Software\Valve\Half-Life\Settings\User Token 2","","REG_SZ"

or if you are interested in learning about it a little, I would suggest google for "vbscript registry" and follow some of the links.

Good luck!


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to azfar)
 
 
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 >> Deleting REG_SZ data value 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