Sign in to follow this  
Followers 0
gcue

if registry entry exists.. can you do that?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
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 :)

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