| View previous topic :: View next topic |
| Author |
Message |
d-man
Joined: 08 Jun 2006 Posts: 247
|
Posted: Wed Oct 04, 2006 10:46 pm Post subject: script requests:monthly reminder & file comparing |
|
|
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 |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 608 Location: Iowa, U.S.
|
Posted: Wed Oct 04, 2006 11:11 pm Post subject: |
|
|
| Try reading the tut and getting ideas from there. Once you thought you found give us a holler. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Wed Oct 04, 2006 11:11 pm Post subject: Re: script requests:monthly reminder & file comparing |
|
|
| 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,  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
d-man
Joined: 08 Jun 2006 Posts: 247
|
Posted: Thu Oct 05, 2006 12:05 am Post subject: |
|
|
Wow. Thanks Goyyah. So simple, too. I think you deserve the "Most Helpful" award around here.
 |
|
| Back to top |
|
 |
dommafia Guest
|
Posted: Thu Oct 05, 2006 12:25 am Post subject: |
|
|
| did the folder script work for you too? |
|
| Back to top |
|
 |
d-man
Joined: 08 Jun 2006 Posts: 247
|
Posted: Thu Oct 05, 2006 2:01 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Thu Oct 05, 2006 11:23 am Post subject: |
|
|
(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 |
|
 |
d-man
Joined: 08 Jun 2006 Posts: 247
|
Posted: Fri Oct 06, 2006 12:15 am Post subject: |
|
|
| what is scheduled tasks & how can i use it to make a monthly pop-up? |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Oct 06, 2006 10:50 am Post subject: |
|
|
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 |
|
 |
|