delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/08/19:55:54

Message-ID: <B0000026636@nordhorn.de>
Date: Sun, 10 Jan 2094 01:39:27 +0100
From: Jens Luedicke <jens AT irs-net DOT com>
To: djgpp AT delorie DOT com
Subject: changing of the system date
X-Mailer: Jens Luedicke's registered AK-Mail 3.1 publicbeta2 [ger]
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hi there...

My AMI BIOS isn't Y2K safe... it sets the year always to 2094 when
the comp gets rebooted.

But, I found a little solution:

How can I read out the day and the month from the BIOS with C
that I can include those values into the DOS "date" command?

in Perl I would do that like: system("date", "$day.$month.2000");

I would run this little tool every time my comp get's started to
change the wrong year to 2000.

Any suggestions ?



Jens Luedicke <jens AT irs-net DOT com>  // YAPW32H
======================================================================
				     >> Remove NO-SPAM to reply!
	  			     >> PGP-Keys: pgp-keys AT irs-net DOT com
======================================================================
perl -e unlink("microsoft")

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019