VOGONS

Common searches


First post, by Graham21

User metadata
Rank Newbie
Rank
Newbie

Hello All,

I searched for the solution but found too many things with the word "date" in them.

I'm loading an old program, nothing sexy or interesting.

It loads just fine in DOSBox - amazing, after all these years - great job boys!!!

But, I need to set the date to work around the built in securiety we put in there back in 1995.

On an isolated box (old ass Toshiba running Win7), I can set the system date and move forward.

But, I'm trying to get some work done on my main box so I can't set the system time.

Here's the question:
- How can I set the date in DOSBox that won't affect the host system?
- Can I build this into a simple .bat file?

After loading DOSBox, I can't type c:\>date, it returns Illegal command: date. So, that's a problem I would guess.

Any thoughts?

Thanks,
Patrick

Reply 1 of 10, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

DOSBox doesn't do that, but if you boot a DOS image inside DOSBox you can probably do that. You only lose the quick and easy access to your system folders.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 10, by latalante

User metadata
Rank Newbie
Rank
Newbie

You can use date from the GNU shtool package (requires cwsdpmi).
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/shtl208b.zip
ftp://ftp.delorie.com/pub/djgpp/current/v2misc/csdpmi7b.zip

date.exe -s 1995-12-08
date.exe +%D
date.exe +%Y-%M-%d

Reply 5 of 10, by latalante

User metadata
Rank Newbie
Rank
Newbie
ripsaw8080 wrote:

SVN has a DATE command. In 0.74 you can use the 4DOS shell to get a DATE command.

I read that only the SVN version has the date built-in command.
If it also exists in older versions, then an external program is actually unnecessary.

Reply 6 of 10, by Graham21

User metadata
Rank Newbie
Rank
Newbie

Wow, I'm speechless, I had no idea how robust and engaged this group was - WOW!

Thank you all.

Quick question, which one do you want me to download - I'm using WinX to host DOSBox. No compiler or skill set to do so.

Which one?
DOSBox-screen-grag.jpg