home *** CD-ROM | disk | FTP | other *** search
- /* datetest.mrbk */
-
- /* This ARexx script invokes MRBackup's date requester. */
-
- signal on ERROR
- signal on BREAK_C
-
- parse source type res called resolved ext host
-
- options results
-
- if ~(Show('P', 'MRBackup_#1')) then do
- say "You must run MRBackup first. With a little work, you could"
- say "get this ARexx script to do it for you."
- exit 1
- end
-
- address "MRBackup_#1"
-
- poptofront
-
- gettestdate
- if rc ~= 0 then do
- say "Failed to get test date; rc = " || rc
- exit rc
- end
-
- say "Current test date: " || result
-
-
- say "Getting current date format..."
- 'dateformat'
- currentDateFormat = result
- say "Current date format is " || currentDateFormat
-
- say "Setting date format to 2 (USA)..."
- 'dateformat' "2"
-
- /* newDate = "09/01/94 12:00:00" */
- newDate = "09/01/94 12:01:02"
- say "Setting test date to " || newDate
-
- settestdate newDate
- if rc ~= 0 then do
- say "Failed to set test date; rc = " || rc
- exit rc
- end
-
- say " Final test date: " || result
-
- 'notealert "Date test completed."'
-
- exit 0
-
-
- /*------------------------------------------------------------------*/
-
- break_c:
-
- say "*** Control-C recieved. Stopped by user. ***"
- exit 5
-
- /*------------------------------------------------------------------*/
-
- error:
-
- say "Error"
- exit 6
-
- /*------------------------------------------------------------------*/
-
-