• Please review our updated Terms and Rules here

question about realtime clock

musicforlife

Experienced Member
Joined
Jan 10, 2018
Messages
255
Location
Finland
Maybe a stupid question but couldn't find any info after searches.

When using DOS 2 or 3, how can I stop it asking time and date each time? My computer even has coin battery in the motherboard but the dos boot still asks for it even though the battery is working.
 
Well, the simplest way is to just use a text editor, but you can also (IIRC) do:
Code:
copy con: > autoexec.bat
and then terminate the input with a Ctrl-Z.
 
Hmm, it's interesting that COPY doesn't copy zero-length files.
So, "copy con autoexec.bat" and just Ctrl-Z won't do the work, you need to enter some content, eg. press Enter for an empty line.
"copy con > autoexec.bat" will generate a file, but it won't be empty - there will be the "0 file(s) copied" message in that file.
 
This might work although I'm not sure it works on all DOS versions;
Code:
rem>C:\AUTOEXEC.BAT

If you have DEBUG then just do this;
DEBUG C:\AUTOEXEC.BAT
-w
-q
 
Back
Top