AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

script requests:monthly reminder & file comparing

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
d-man



Joined: 08 Jun 2006
Posts: 247

PostPosted: Wed Oct 04, 2006 10:46 pm    Post subject: script requests:monthly reminder & file comparing Reply with quote

Hello. Anyone can help with these two things I'd like?

Firstly, I'd like a monthly reminder pop-up message on the same date. How could I do that?

Second is a little more complicated, I would like to compare the files in two different folders, and delete all the files in folder #2 that are NOT in folder #1. Make sense?

Any help mucho appreciated & sorry for my dumbness that I cannot figure it out.
Back to top
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Wed Oct 04, 2006 11:11 pm    Post subject: Reply with quote

Try reading the tut and getting ideas from there. Once you thought you found give us a holler.
Back to top
View user's profile Send private message AIM Address
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Wed Oct 04, 2006 11:11 pm    Post subject: Re: script requests:monthly reminder & file comparing Reply with quote

d-man wrote:
Second is a little more complicated, I would like to compare the files in two different folders, and delete all the files in folder #2 that are NOT in folder #1.


* Not Tested *

Code:
Folder1 := "C:\WINNT"
Folder2 := A_Temp
Loop %Folder2%
 IfNotExist, %Folder1%\%A_LoopFilename%, FileDelete, %A_LoopFileLongPath%


Edit:

d-man wrote:
I'd like a monthly reminder pop-up message on the same date.


Put this one liner in your startup folder and it will remind you every 5th:
Code:
IfEqual, A_DD, 05, MsgBox, 64, Monthly Alert!, Take a Haircut, 5


Regards, Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
d-man



Joined: 08 Jun 2006
Posts: 247

PostPosted: Thu Oct 05, 2006 12:05 am    Post subject: Reply with quote

Wow. Thanks Goyyah. So simple, too. I think you deserve the "Most Helpful" award around here. Smile

Back to top
View user's profile Send private message
dommafia
Guest





PostPosted: Thu Oct 05, 2006 12:25 am    Post subject: Reply with quote

did the folder script work for you too?
Back to top
d-man



Joined: 08 Jun 2006
Posts: 247

PostPosted: Thu Oct 05, 2006 2:01 am    Post subject: Reply with quote

I had to change the folder script slightly to:

Code:
Folder1 := "C:\WINNT"
Folder2 := A_Temp
Loop %Folder2%\*.*
 IfNotExist, %Folder1%\%A_LoopFilename%, FileDelete, %A_LoopFileLongPath%


otherwise it wouldn't work.

But how to check every day for the monthly reminder? Should I use:

Code:
SetTimer, Monthly, 86400000

Monthly:
IfEqual, A_DD, 05, MsgBox, 64, Monthly Alert!, Take a Haircut, 5


?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Thu Oct 05, 2006 11:23 am    Post subject: Reply with quote

(far away voice) Use the Scheduled Tasks, Luke...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
d-man



Joined: 08 Jun 2006
Posts: 247

PostPosted: Fri Oct 06, 2006 12:15 am    Post subject: Reply with quote

what is scheduled tasks & how can i use it to make a monthly pop-up?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Oct 06, 2006 10:50 am    Post subject: Reply with quote

Supposing you have a NT-based system (w2k, wXP), in the Configuration panel, you have a Scheduled Tasks entry (Tâches planifiées on my system).
If you enter it, you will find probably a single entry in Explorer-like view, allowing you to create a new scheduled task (Création d'une tâche planifiée).
There, a wizard will let you choose a program, set up date of run and frequency if any, etc.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group