Jump to content
Sign in to follow this  
Glyph

RegRead in a variable, not working. =.=

Recommended Posts

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","EServer1","REG_SZ",@HomeDrive&"\Program Files\Ethernet\EServer\EServer.exe")

$eser = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","EServerv1")

If not $eser = @HomeDrive&"\Program Files\Ethernet\EServer\EServer.exe" then
 msgbox(0,"Error","Error adding registry key: "&$eser) ; It reads nothing!
Else
;nothing yet
EndIf

Yet, when I use the example in the Help file, it works...

-.- Any ideas?

Edited by BackStabbed

Share this post


Link to post
Share on other sites

All correct, but misprint here:

$eser = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","EServerv1")

:)

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  

×
×
  • Create New...