AUTOEXEC.BAT and CONFIG.SYS emulation.

General information and assistance with DOSBox.

AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby Paolo_R » 2010-5-30 @ 08:30

I am trying to run an app which requires a a DOS memory manager be loaded e.g. EMM386, QEMM. So I might, for example, need the following environment:

MS DOS 5 / EMM386 - CONFIG.SYS

DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS
DOS=HIGH,UMB
FILES=50
BUFFERS=5
STACKS=0,0
BREAK=ON

MS DOS 5 / EMM386 - AUTOEXEC.BAT

PROMPT $p$g
PATH C:\;C:\DOSBOX

LH BTRIEVE /E /M:48 /P:4096 /T:\CLARION3\CLARION.TRN
LH MOUSE
LH DOSKEY

I know I can use some statements in the [autoexec] section of dosbox.conf but is there any way I can emulate the above environment?
Paolo_R
Newbie
 
Posts: 33
Joined: 2009-4-04 @ 03:24

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby ADDiCT » 2010-5-30 @ 08:57

Yes.
User avatar
ADDiCT
Oldbie
 
Posts: 1170
Joined: 2007-2-02 @ 15:07
Location: Retroland

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby Paolo_R » 2010-5-30 @ 09:08

Yes


Could you possibly give me an example (preferably using the settings shown)?

Sorry if this is basic but I'm new to DOSBOX.

Thx.[/quote]
Paolo_R
Newbie
 
Posts: 33
Joined: 2009-4-04 @ 03:24

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby TeaRex » 2010-5-30 @ 22:41

xms=true
umb=true
ems=false
tearex
TeaRex
Member
 
Posts: 398
Joined: 2005-2-06 @ 07:39

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby Paolo_R » 2010-5-31 @ 01:10

TeaRex: thanks. Is there any info any where about the 'virtual' settings or commands implemented by :

xms=true - presumably DEVICE=C:\DOS\HIMEM.SYS
umb=true - presumably DOS=HIGH,UMB
ems=false - presumably DEVICE=C:\DOS\EMM386.EXE NOEMS

What about emulating:

CONFIG.SYS:
FILES=50
BUFFERS=5
STACKS=0,0

and

AUTOEXEC.BAT:
LH BTRIEVE /E /M:48 /P:4096 /T:\CLARION3\CLARION.TRN
LH MOUSE
LH DOSKEY

Thanks.
Paolo_R
Newbie
 
Posts: 33
Joined: 2009-4-04 @ 03:24

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby eL_PuSHeR » 2010-5-31 @ 07:08

You should also try putting a bogus CONFIG.SYS and AUTOEXEC.BAT files at the root folder of mounted drive.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)
User avatar
eL_PuSHeR
Moderator
 
Posts: 6439
Joined: 2003-6-20 @ 16:39

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby TeaRex » 2010-5-31 @ 07:24

Paolo_R wrote:What about emulating:

CONFIG.SYS:
FILES=50
BUFFERS=5
STACKS=0,0

and

AUTOEXEC.BAT:
LH BTRIEVE /E /M:48 /P:4096 /T:\CLARION3\CLARION.TRN
LH MOUSE
LH DOSKEY


I don't know what the BTRIEVE command does. Everything else is not needed since DOSBox already has enough FILES, wastes no space on BUFFERS and STACKS, and has a MOUSE driver and DOSKEY style command line editing built-in.

umb=true basically simulates the combination of EMM386 NOEMS and DOS=UMB. You need both in real DOS to get UMB support, although you can use e.g. UMBPCI instead of EMM386 (pickier on hardware, but better software compatibility). ems=false corresponds to the NOEMS option, although NOT loading EMM386 at all would also correspond to ems=false.

Note that the need for UMBs is much less in DOSBox compared to real DOS, as they're mostly used to "LH" drivers into, and as said above most of the more common drivers are built-in with DOSBox and don't take up any emulated memory. So you have enough free memory even without all these DOS memory management shenanigans of unhappy memory.
tearex
TeaRex
Member
 
Posts: 398
Joined: 2005-2-06 @ 07:39

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby ripsaw8080 » 2010-5-31 @ 08:21

Btrieve is a database backend, and Clarion is a DBMS. The app may require file sharing and record locking, as is common for database apps, and official DOSBox does not provide these things; although there may be modified builds that include the functionality.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4024
Joined: 2006-4-25 @ 23:24

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby Paolo_R » 2010-6-02 @ 04:05

I've got Clarion working but in Virtual PC2004.
Paolo_R
Newbie
 
Posts: 33
Joined: 2009-4-04 @ 03:24

Re: AUTOEXEC.BAT and CONFIG.SYS emulation.

Postby Paolo_R » 2010-6-02 @ 04:09

Thanks for the explanation.

So you have enough free memory even without all these DOS memory management shenanigans of unhappy memory.


Ah, but it's great nostalgic fun! :happyhappy:
Paolo_R
Newbie
 
Posts: 33
Joined: 2009-4-04 @ 03:24


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests