lyledg Posted December 24, 2004 Share Posted December 24, 2004 Guys I am trying to write a simple script that will delete a file on the last day of the month. I have had a look at the forums and not really seen anything that would help... Any Ideas? Link to comment Share on other sites More sharing options...
CyberSlug Posted December 24, 2004 Share Posted December 24, 2004 Should work if I didn't make a mistake:$daysPerMonth = StringSplit("31,28,31,30,31,30,31,31,30,31,30,31", "") If Mod(@YEAR,400)=0 Or (Mod(@YEAR,4)=0 And Mod(@YEAR,100)<>0) Then $daysPerMonth[2] = "32";leap year If $daysPerMonth[@MON] = @MDAY Then MsgBox(4096,"Info","Last Day of month.... delete file....") Otherwise, look at the JdeB's excellent collection of Date UDF's which are in the "C:\Program Files\AutoIt3\Include\Date.au3" file.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Guest Guidosoft Posted December 24, 2004 Share Posted December 24, 2004 And they didn't think to include me in their includes. THAT SUX!!! OH no. What's happening to me. I AM EVIL!!!! Link to comment Share on other sites More sharing options...
Developers Jos Posted December 24, 2004 Developers Share Posted December 24, 2004 And they didn't think to include me in their includes. <{POST_SNAPBACK}>Did you ever bother to read the UDF post at all where you replied to ? THAT SUX!!! OH no. What's happening to me. I AM EVIL!!!! Wonder why you're not treated seriously ??? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
sykes Posted December 24, 2004 Share Posted December 24, 2004 And they didn't think to include me in their includes. THAT SUX!!! OH no. What's happening to me. I AM EVIL!!!!<{POST_SNAPBACK}>Didn't one of your includes delete someones registry recently? We have enough youth. How about a fountain of SMART? 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