Jump to content

Recommended Posts

Posted (edited)

for the life of me i cannot figure out the sytax on how to use this command. i looked at the examples and cant get it.

i have a "regsz" key named "1" with value "x"

how do i do this?

Edited by bobbintb

Posted

{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\Test Key",1,"REG_DWORD")

{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\Test Key","Value","REG_SZ")

  • 2 weeks later...
Posted
{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\Test Key",1,"REG_DWORD")

{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\Test Key","Value","REG_SZ")

this doesnt seem to be working in vista. is there away to run it elevated?

  • 1 month later...
Posted

From a quick Google search, the strings must be NULL terminated and double NULL terminated at the end.

Don't put quotes around numbers.

Posted

{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\Test Key",0,"REG_MULTI_SZ")

Still not working :(

I guess it has something to do with "REG_MULTI_SZ"

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...