Script to connect, then set date and time


Author Message
Ray B
Senior Member

Joined: 16/02/2007
Location: Australia
Posts: 219
Posted: 12:46pm 19 Jun 2011      

Great hint James but the macro has an error that causes the time to not be set when first plugged into USB and run. When I enter 'print time$' the clock is zeroed but 'print date$ 'is OK

If you go into TeraTerm and go Control / Macro then select your macro and open it it comes back with error:
Variable Not Initilized
Sendln 'TIME$='"CurTime""M:\

To fix problem change line to following:
Sendln 'TIME$='"CurTime""

Looks like the M:\ may be a typo or error from your editor

Cheers
RayB from Perth WA