Elephant007 Posted April 27, 2011 Share Posted April 27, 2011 I'm sure to the ones that script all the time with AutoIt this won't be a problem, I just can't wrap my head around it (again) I am trying to develope a DSQUERY script that will only run certian months, since I work for a school district, computers aren't used for about three months out of the year I would like this script to only run on Septemeber through May, I know I can do something like IF @MON, I just don't know how to make it so it's months 09,10,11,12,01,02,03,04,05 I have the rest of the DSQUERY so I do not require help for that part thank you! Link to comment Share on other sites More sharing options...
wakillon Posted April 27, 2011 Share Posted April 27, 2011 Like this ? If @MON > 5 And @MON < 9 Then Exit AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Elephant007 Posted April 27, 2011 Author Share Posted April 27, 2011 Like this ? If @MON > 5 And @MON < 9 Then Exit So this logic is If the MONTH is LESS than X and MONTH is MORE than X do Y? seem logical, I'll try it, thank you! Link to comment Share on other sites More sharing options...
wakillon Posted April 27, 2011 Share Posted April 27, 2011 it would be rather :If the MONTH is LESS than 9 and MONTH is MORE than 5 do Exit AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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