Jump to content

Recommended Posts

Posted (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 by XTensionX
Posted

#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]

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