VOGONS


First post, by pcm

User metadata
Rank Newbie
Rank
Newbie

It appears that DosBox is missing the Date command.

I have a DOS application which will not run if the year is greater then 1999, so I want a way to set the date only in the DosBox, and I do not want it to it change the system date of the PC.

Is this possible?

Reply 2 of 7, by pcm

User metadata
Rank Newbie
Rank
Newbie

Thanks for the reply DF... Sounds like a good idea, but I'm a newb at DOSBox, and I didnt see any FAQ on booting MS-DOS from DOSBox.

I attempted to run COMMAND.COM from MS-DOS 6.22 under DOSBox and it resulted in the "Incorrect DOS Version" error.

I recall that using SETVER.EXE should allow me to fix that, but it appears that SETVER will only run if I put it in a CONFIG.SYS file and actually boot it.

So how would I go about booting DOS from DOSBox? I'm running DOSBox under Windows 2000.

Reply 3 of 7, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

Usually create images of your DOS floppies. But if you try to set the recognized DOS version within DOSBox, set it this way:

ver set 4 1

DOSBox version 0.72. Reported DOS version 4.1

Klimawandel.

Reply 4 of 7, by pcm

User metadata
Rank Newbie
Rank
Newbie

That did the trick... Thanks IIGS!

I didn't need to do a boot image even, doing a "ver set 6 22" allowed me to run the MS-DOS 6.22 command.com, and using the parameters command.com /c filename.bat" I was able to run a batch file in MS-DOS that first sets the date using "date 1-1-1999" followed by the filename of my DOS exe. 😀

I was concerned that setting the date under command.com would write the date to the system clock, causing other windows apps to be off, but the new date was only changed within the DOSBox so it worked perfect.

Reply 6 of 7, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

Wow. 😁
We're able to mix the internal DOS with original MS-DOS programs. 😎

Klimawandel.

Reply 7 of 7, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes, and results are unpredictable so you're on your own.