Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date fixing .bat file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I was wondering if someone could do the favour of writing a .bat file that will change the date of my computer from 2094 back to 2000.

I tried writing one but only managed to make it change the entire date which is not what i want to do.

I would like it to change the date back 94 years and leave the days and months where they are and execute itself on the windows 98 startup.

Thankyou.
 
David,

If you set the date in the BIOS to todays date, it will contiune to have the correct date. If it dose not hold the date, you have a problem with the BIOS, mabey you need to replace the battery, or have a word to the vendor.

But for the record to change the date at a dos prompt its

date mm/dd/yy
and
time hh:mm:ss

Paul
 
That's a tough one. I was tempted to say "Write a vb script. Something like:"

Date = Left(Date, 6) & "00"

But VB scripting doesn't allow you to change the date, only read it.

I'll look into it and see what I can find. I know I used to write batch files to perform similar tasks under 4DOS.COM (a third-party command interpreter) but COMMAND.COM doesn't allow that sort of functionality and Microsoft appears to have left it out of VBS. Silly, if you ask me.
VCA.gif
 
I have the same problem with a CyberMax P100 I bought at auction to run a few programs downstairs. Saves trips. The machine arrived with several programs listed on C: drive which I erased by formatting the drive and installing WIN95.

When I boot up, the year is always 2094 and I discovered that one of the applications I deleted was the fix for this BIOS bug. I EMailed CyberMax and they kindly sent me the fix but due to my disorganization, I lost it.

I've written to them twice since then but the EMail is returned. So I'm stuck with going to control panel - Date and Time, and manually forwarding to 2000. Moving the year up is faster since it resets to 1980 when it reaches 3000.

Charles
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top