home *** CD-ROM | disk | FTP | other *** search
- /* this executes all reminder files at logon */
-
- 'date | execio stem today.'
- parse var today.1 day todaydate remtime .
- parse var remtime remhrs':'remmin':'remsec
- 'list hd:reminders/'todaydate'* | execio stem files.'
- do i = 2 to files.0-1
- parse var files.i file .
- newfile = 'hd:reminders/'file
- execio read newfile stem lines.
- nag = ""
- do j = 1 to lines.0
- interpret lines.j
- end
- parse var time hrs':'min':'sec
- if sec = "" then sec = "00"
- if hrs > remhrs then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min > remmin then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min = remmin & sec > remsec then "runwsh remind "todaydate time nag message
- end
-
- 'list hd:reminders/everyday* | execio stem files.'
-
- do i = 2 to files.0-1
- parse var files.i file .
- newfile = 'hd:reminders/'file
- execio read newfile stem lines.
- nag = ""
- do j = 1 to lines.0
- interpret lines.j
- end
- parse var time hrs':'min':'sec
- if sec = "" then sec = "00"
- if hrs > remhrs then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min > remmin then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min = remmin & sec > remsec then "runwsh remind "todaydate time nag message
- end
-
- 'list hd:reminders/'day'* | execio stem files.'
-
- do i = 2 to files.0-1
- parse var files.i file .
- newfile = 'hd:reminders/'file
- execio read newfile stem lines.
- nag = ""
- do j = 1 to lines.0
- interpret lines.j
- end
- parse var time hrs':'min':'sec
- if sec = "" then sec = "00"
- if hrs > remhrs then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min > remmin then "runwsh remind "todaydate time nag message
- if hrs = remhrs & min = remmin & sec > remsec then "runwsh remind "todaydate time nag message
- end
-