Subj : Renaming/dating directories FTP server (date) on content directorie To : CBFalconer From : Gerald Miller Date : Fri Dec 21 2001 01:25 am Hello Chuck, Wednesday December 19 2001 09:24, Chuck Falconer wrote to me: C> From: CBFalconer C> Gerald.Miller@xspamp0.f512.n342.z1.fidonet.org wrote: >> Hello Jasen, >> >> Sunday December 16 2001 07:33, Jasen Betts wrote to me: >> >> JB> 14-Dec-01 12:19:02, Gerald Miller wrote to Jasen Betts >> >> GM>> I would be interested in knowing what fidonet software >> GM>> you are using to synchronize your PC clock to that of >> GM>> your uplink. >> >> JB> Terminate, it's a built in feature, I just checked a >> JB> check-box. still there's no reason why it couldn't be >> JB> done using 4dos :) >> >> Terminate? The comm program written by Bo Bendtsen? >> >> GM>> === Cut Begin: FD.LOG === >> GM>> : 10:52:56 RTime: 14 Dec 01, 10:49:33 >> GM>> : 10:52:56 LTime: 14 Dec 01, 10:52:54 (-0700) >> GM>> === Cut End: FD.LOG === >> >> GM>> The (-0700) is my UTZ setting.... >> >> JB> exact code depends on if you padded those lines with : >> JB> at the start when you quoted them, >> >> No padding was done for the quoting. Excerpt pasted directly >> from my FrontDoor (mailer program) log file.... >> >> JB> All you'd have to do would be convert the times into >> JB> numbers (%@time) and take the difference, add that to >> JB> the current time and set the clock to that (%@timeval) >> JB> (expect +/- 1 second accuracy) >> >> A +/- 1 second accuracy is certainly something that I can >> live with; much better than being +/- 2 or 3 minutes. Got to >> work on obtaining a "condensed" FrontDoor log file containing >> the RTime and LTime before I do the number routine and clock >> setting.... >> C> I use webtime, from http://www.gregorybraun.com Thank you for this info. I do envy your InterNet access, but, unfortunately, I do not have that "luxury" and must develop a 'manual' method.... This is what I am working on, currently: === Cut Begin: FIXTIME.BTM === if "%1" = "" goto help set today=%@eval[%@date[%_date]*86400 + %@time[%_time]] if "%1" = "a" goto add if "%1" = "s" goto sub :add iff "%2" = "" then %+ echo No time value was entered to ADD as %%2!! goto help else set now=%@eval[%today + %@time[%2]] %+ goto dotime endiff :sub iff "%2" = "" then %+ echo No time value was entered to SUBTRACT as %%2!! goto help else set now=%@eval[%today - %@time[%2]] %+ goto dotime endiff :dotime set newtime=%@maketime[%@eval[%now %% 86400]] time %newtime echo. echo Revised time is: %_time :end quit :help text FIXTIME.BTM will adjust the system clock. example: FIXTIME A 00:00:07 (will ADD seven seconds to the current time) %1 must be either: A (to ADD a value to the system time) or S (to SUBTRACT a value from the system time) %2 must be a time value in the form: 00:00:00 (hours:minutes:seconds) endtext delay 5 %+ goto end === Cut End: FIXTIME.BTM === I am trying to devise a method to "read" the FD.LOG file and "find" the LAST occurrence of 'RTime:' within the file, strip the "date string" (14 Dec 01,) and obtain the Remote system's time to a variable. Repeat the process for 'LTime', perform the math to determine if: a.) LTime is identical to RTime [no action], b.) LTime is MORE than RTime [SUBTRACT the time difference from LTime], or c.) LTime is LESS than RTime [ADD the time difference to LTime]. So far, I haven't had any success with "reading" the log file or finding the LAST occurrence of 'RTime:' within the file.... Your suggestion(s) to a solution would be appreciated. Cheers ... Gerald --- GoldED+/386 1.1.5-1216 * Origin: But since the implant we always know where he is. (1:342/512) .