Sign in to follow this  
Followers 0
sdsm

script newbie - regwrite error

3 posts in this topic

Hello,

This error makes no sense to me and i'm sure I'm missing something simple. Here is the code in the example:

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

Here is my code:

; Write a single REG_SZ value
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Environment", "LSFORCEHOST", "REG_SZ", "14.221.5.26")

When I execute it comes up with this error:

Posted Image

What am I missing??

Thanks for your help.

Share this post


Link to post
Share on other sites



is your regwrite on one line ?

; Write a single REG_SZ value
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "LSFORCEHOST", "REG_SZ", "14.221.5.26")

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

is your regwrite on one line ?

; Write a single REG_SZ value
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "LSFORCEHOST", "REG_SZ", "14.221.5.26")

That was it! Thanks!

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