Sign in to follow this  
Followers 0
RogerRabbitsClone

create new rgistry key

3 posts in this topic

i want to make a new registry key, and i cant seem to find an example anywhere. ive searched the forums/google to no avail. i know its probably gonna' start with regwrite, but after that im at a loss.

anything would be greatly appreciated.


<--a good way to start you day

Share this post


Link to post
Share on other sites



Straight from the help file, RegWrite's example:

; Write a single REG_SZ value
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey", "REG_SZ", "Hello this is a test")

; Write the REG_MULTI_SZ value of "line1" and "line2"
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey1", "REG_MULTI_SZ", "line1" & @LF & "line2")

; Write the REG_MULTI_SZ value of "line1"
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey2", "REG_MULTI_SZ", "line1")

; always add and extra null string
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey3", "REG_MULTI_SZ", "line1" & @LF & "line2" & @LF)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey4", "REG_MULTI_SZ", "line1" & @LF & @LF & "line2" & @LF)

; empty REG_MULTI_SZ
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey5", "REG_MULTI_SZ", "")

; create just the key
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test1")

Read closely. ;)

Share this post


Link to post
Share on other sites

wow. way to make me feel like a moron. ;) thank ya much.


<--a good way to start you day

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0