Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

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 :)

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
×
×
  • Create New...