Jump to content

Recommended Posts

Posted

can someone tell me what is wrong with this? it tells me there is an error in expression at the $trend part of the script (in the second line)...... I am unable to figure out the problem. maybe I'm just tired. :D

$trend  = FileGetVersion ("C:\OfficeScan NT\PccNT.exe")
    If $trend = 7.3.0.1020 then 
       $trend2 = 0
    Else 
       $trend2 = 1
    EndIf

Amp Energy Drink: the official sponsor of me scripting at 2AM.

Posted

$trend  = FileGetVersion ("C:\OfficeScan NT\PccNT.exe")
If $trend = "7.3.0.1020" then 
    $trend2 = 0
Else 
    $trend2 = 1
EndIf
I see what you did, but why does the spacing give autoitv3.1 problems? will it be different in the beta?

Amp Energy Drink: the official sponsor of me scripting at 2AM.

Posted

I see what you did, but why does the spacing give autoitv3.1 problems? will it be different in the beta?

Think you need some coffee

the space had nothing to do with it.

look at the if statement

Returns a string containing the version information

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

Think you need some coffee

the space had nothing to do with it.

look at the if statement

the quotes...got it. thanks. :D

Amp Energy Drink: the official sponsor of me scripting at 2AM.

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...