Subj : XBOOT3.BTM To : Gerald Miller From : Jasen Betts Date : Sat Nov 02 2002 06:47 am Hi Gerald. 31-Oct-02 09:01:34, Gerald Miller wrote to Jasen Betts GM> :: The following section will change the date and time stamp of GM> XBOOT3.BTM GM> :: I use the data to maintain the XBOOT3.BTM version number sequence. GM> :: PLEASE LET ME KNOW IF THE TOUCH SEQUENCE SHOULD GIVE YOU ANY GM> PROBLEMS. GM> iff %@fileage[%_batchname] ne %@makeage[10-19-02,01:30:00] then GM> touch /d10-19-02 /t01:30:00 %_batchname GM> endiff it does, twice. once in makeage, once in touch, the date format is not valid here. ISO format works but only in version 7 GM> :: ###WARNING### GM> :: You ARE required to change "q3" (in the next line) to the path\name GM> :: of your text editor!!! GM> :: DO IT NOW BEFORE YOU GET AN ERROR MESSAGE IF THERE IS AN ERROR!!! GM> :: "Q3" is my version of the Semware Editor. GM> on error (q3 /n%_batchline %@search[%0] %+ quit) GM> on break goto END my editor doesn't support jump-to-line. I commented that bit out too. GM> if "%temp" eq "" set temp=C:\ GM> :: Next command establishes the location and name of the variable "TEMP" GM> :: that holds the temporary information while the action is performed. GM> set temp=%temp\%@name[%0].TMP why not this: set tempfile=%@unique[%temp] overwriting the variable temp may mess up any pipes in called batches... so a different name should be used, and unique was made for nameing temporary files. GM> set nextdate=%@date[%@eval[%@date[%today] + %when]] GM> set daysleft=%@date[%@eval[%@date[%nextdate] - %today]] this chould be set nextdate=%@eval[%today + %when] set daysleft=%@eval[%nextdate - %today] later it goes GM> set nextrun=%@date[%@eval[%@date[%last] + %when]] What's the difference between nextrun and nextdate? (i could find none) i rearranged that bit to use fewer lines and only one echo line like I was saying earlier. GM> %[run%m] I added a call here; call %[run%m] call works ok with interna commands, l *.com and *.exe files as well as with *.btm and *.bat, aliaes, (etc) - this leaves more room in the *.dat file for parameters etc, and stops it from messing up if you put a batch in the dat file and forget the call. -=> Bye <=- --- * Origin: Anything is good if it's made of chocolate. (3:640/531.42) .