mike1305 Posted July 18, 2006 Share Posted July 18, 2006 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. $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. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 18, 2006 Share Posted July 18, 2006 $trend = FileGetVersion ("C:\OfficeScan NT\PccNT.exe") If $trend = "7.3.0.1020" then $trend2 = 0 Else $trend2 = 1 EndIf SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
mike1305 Posted July 18, 2006 Author Share Posted July 18, 2006 $trend = FileGetVersion ("C:\OfficeScan NT\PccNT.exe") If $trend = "7.3.0.1020" then $trend2 = 0 Else $trend2 = 1 EndIfI 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 18, 2006 Share Posted July 18, 2006 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 coffeethe space had nothing to do with it.look at the if statementReturns 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. Link to comment Share on other sites More sharing options...
mike1305 Posted July 18, 2006 Author Share Posted July 18, 2006 Think you need some coffeethe space had nothing to do with it.look at the if statementthe quotes...got it. thanks. Amp Energy Drink: the official sponsor of me scripting at 2AM. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now