XTensionX Posted August 1, 2009 Share Posted August 1, 2009 (edited) hi all.. this is my script if @mon = 8 then FileInstall("C:\Users\Game\Downloads\test.gif", @TempDir & "\test.gif") Else EndIf what i am trying to do is to program it to if its for example.. 23/08/2009 onward then install test.gif otherwise close program.. but i couldnt get the time on it.. i only can get either year/month but i wanted year/month/date onward is there anyone who can help me. Edited August 1, 2009 by XTensionX Link to comment Share on other sites More sharing options...
nekkutta Posted August 1, 2009 Share Posted August 1, 2009 #include <Date.au3> If _DateDiff('s', '2009/08/23', _NowCalcDate()) > 0 Then FileInstall("C:\Users\Game\Downloads\test.gif", @TempDir & "\test.gif") EndIf [size="2"] "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian Kernighan[/size] Link to comment Share on other sites More sharing options...
XTensionX Posted August 1, 2009 Author Share Posted August 1, 2009 #include <Date.au3> If _DateDiff('s', '2009/08/23', _NowCalcDate()) > 0 Then FileInstall("C:\Users\Game\Downloads\test.gif", @TempDir & "\test.gif") EndIf working great thanks =] 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