Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

BATCH script to save DATE to a variable (Users)

posted by rr Homepage E-mail, Berlin, Germany, 25.03.2025, 18:41

> There's a freeware diagnostics program, NSSI, that I run on different
> computers while testing them, that is hard coded to print an error message
> if the current date is past 2008.

What NSSI version are you using? Latest 0.60.45 is from 2010 and has no problems with that year.

> So with my script I save the current date, set the date as 12-31-2008, run
> the program, and then set the correct date again.

A quick hack:
1) Grab the FAKEDATE TSR program from https://soulsphere.org/mirrors/www.rome.ro/lee_killough/versions/prnotes.shtml
2) Unpack fakedate.zip
3) Use your favorite binary/hex editor and load FAKEDATE.COM
4) At offset 0Bh turn C9 into DA. This will give you 10-OCT-2010.
5) Save the file and quit the editor
6) Run FAKEDATE.COM to load the TSR
7) Run NSSI.EXE
8) Run FAKEDATE.COM /U to unload

Source code is at: https://github.com/fragglet/mbf/blob/master/fakedate.asm

---
Forum admin

 

Complete thread:

Back to the forum
Board view  Mix view
22477 Postings in 2087 Threads, 400 registered users, 125 users online (0 registered, 125 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum