Page 1 of 1

Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Posted: Mon Sep 02, 2024 11:53 am
by schristis
I don't want to set the time & date with the Emulator anymore...
Just wondering if any1 has a solution !


I want to figure out if there was anyway I could start the emulator, and have the time and date (TI$ & DA$ automatically set.)

I know I can set TI$ &TA$ to a specific, "incorrect" setting when AUTOBOOT.X16 runs a program to start the RTC...

Could the BATCH file, write the Time & Date to a file for, or too AUTOBOOT.X16 ?

I'm sure in MS-DOS that you can get the time and date and write to a file....

I just want to know if any1 can do it or has done it ??? It would be really handy....




Best regards
Shaun

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Posted: Mon Sep 02, 2024 1:51 pm
by ahenry3068
schristis wrote: Mon Sep 02, 2024 11:53 am I don't want to set the time & date with the Emulator anymore...
Just wondering if any1 has a solution !


I want to figure out if there was anyway I could start the emulator, and have the time and date (TI$ & DA$ automatically set.)

I know I can set TI$ &TA$ to a specific, "incorrect" setting when AUTOBOOT.X16 runs a program to start the RTC...

Could the BATCH file, write the Time & Date to a file for, or too AUTOBOOT.X16 ?

I'm sure in MS-DOS that you can get the time and date and write to a file....

I just want to know if any1 can do it or has done it ??? It would be really handy....




Best regards
Shaun
Sounds completely doable. Though I would use QB64PE instead of a batch file. I may try to throw something together when I get home this evening. Good idea schristis

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Posted: Mon Sep 02, 2024 1:51 pm
by ahenry3068
Python would work too. But I'm not really a Python guy.

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Posted: Mon Sep 02, 2024 2:38 pm
by JimmyDansbo
I am not sure if I am missing something, but if you start the emulator with -rtc, the TI$ and DA$ variables will be set to the values of the launching computer... I.E. the internal clock of the emulator will be set correctly.

Re: Load Time & Date from .BAT to Autoboot ? TI$ TA$ in Emulator

Posted: Mon Sep 02, 2024 7:33 pm
by schristis
JimmyDansbo wrote: Mon Sep 02, 2024 2:38 pm I am not sure if I am missing something, but if you start the emulator with -rtc, the TI$ and DA$ variables will be set to the values of the launching computer... I.E. the internal clock of the emulator will be set correctly.


Ohh That works "YAY" Thankyou !!! No Complicated Batch file stuff lol :)

I've seen some switches to start the emulator.. but I haven't known of the -RTC switch....