Jump to content

if registry entry exists.. can you do that?


gcue
 Share

Recommended Posts

can something like this be done?

if regread hklm\blah exist

do this

endif

i tried different variations and couldnt get it to work.. is there some type of errorlevel perhaps?

$result = RegRead()

If NOT @ERROR....Then

EndIf

Link to comment
Share on other sites

Here a little part of code that checks for ini and if it doesn't excist it goes to the Then

Global $account = IniRead(@ScriptDir & "\Startupv3.ini", "D2Config", "Account", "")
If $account = "" Then

So I assume you could do something like:

$1=RegRead("","")
If $1= "whatever you wanna read to confirm it's there" Then

Hope it helps but I'm new to this :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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