Tag: autoexec.bat

 

Otimizando o autoexec.bat e config.sys no DOS/Win9x

Nesse artigo (Otimizando o autoexec.bat e config.sys no DOS/Win9x) você vai encontrar alguns exemplos de arquivos de configuração (autoexec.bat e config.sys) que vai ajuda-lo a executar softwares antigos de forma correta.

Note que existe, também, opções para uma otimização específica desses arquivos. Essas configurações são necessárias se você for executando programas DOS sob win9x.

 

msdos.sys
______________________________________________________________

Quando estiver executando o Win9x com DOS 7.0 ou superior, é preciso verificar algumas opções no msdos.sys:

 

[Options]
;set to 1 if you have another version of DOS installed on the same partition as Win9x
BootMulti=0

;use this in order to allow booting into plain DOS 7.x command line rather than Win9x
BootGUI=0

;use this to preserve memory unless you use DoubleSpace or DriveSpace drive compression
DblSpace=0
DrvSpace=0

;disable the Win9x boot logo, might be helpful to see information produced during config.sys and autoexec.bat processing
Logo=0

;save some memory, might cause problems on some systems though
LoadTop=1

 

config.sys
______________________________________________________________

A primeira versão é um exemplo mais simples. Note que se estiver usando UMBPCI, a área de memória utilizada por ele talvez precise ser alterada devido ao seu tamanho e a localização da BIOS gráfica (bem como outras ROMs instaladas). Você também precisa se certificar que o tamanho da página de 64k não esteja sendo usada se quiser usar EMS. Se estiver usando uma versão diferente do DOS 7.0, substitua todas as ocorrências de “c:\windows” para o diretório do DOS instalado:

 

[common]
rem Enable additional config.sys options
SWITCHES=/f

rem Disable automatic loading of DOS drivers by windows since we can do better
DOS=NoAuto

rem Load DOS into upper memory to conserve conventional memory below 640k
DOS=high,umb

rem Reserve some handles and buffers for DOS functions.
rem Larger numbers provide more buffers at the cost of memory,
rem thus you might need to experiment with them a bit if you
rem experience problems with file access
BUFFERSHIGH=40
FILESHIGH=20
FCBSHIGH=1
LASTDRIVEHIGH=m

rem If you can use UMBPCI by Uli Siebers use the following configuration
rem You´ll also need the QHIMEM driver for getting out the best of it:
DEVICE=c:\drivers\qhmboot.sys
DEVICE=c:\drivers\umbpci.sys /i=e000-efff
DEVICEHIGH=c:\drivers\qhimem.sys /n48

rem If you cannot or do not want to use UMBPCI or QHIMEM, use the standard
rem himem.sys instead:
DEVICE=c:\windows\himem.sys

rem If you are not using the Win9x GUI you might want to run the EMS driver
rem This will also provide UMB memory by using the “ram” option if UMBPCI is not used.
rem Note that this driver is not needed for EMS support while Win9x is running
DEVICEHIGH=c:\windows\emm386.exe ram auto

rem This helper driver is only needed for the Win9x GUI, not for plain DOS:
DEVICEHIGH=c:\windows\ifshlp.sys

rem If you want USB mass storage support under plain DOS, load the USB drivers
rem which can be found on the net:
DEVICEHIGH=c:\drivers\usbaspi.sys /v
DEVICEHIGH=c:\drivers\di1000dd.sys

rem Load a mouse driver if needed
rem Note that Win9x will provide mouse support by its own, thus not needing a mouse driver
rem CuteMouse is recommended due to its low memory footprint and it will load into high memory by default
INSTALL=c:\drivers\ctmouse.exe

rem Load a CDROM driver if necessary
rem Here, QCDROM is used in combination with SHCDX (a MSCDEX replacement) in order
rem to minimize memory usage again
rem Note that Win9x will provide its own driver, thus the following lines are only
rem useful under plain DOS
DEVICEHIGH=c:\drivers\qcdrom.sys /D:mycdrom
INSTALL=c:\drivers\shcdx33a.com /D:mydrom

rem ***insert your soundcard config.sys driver here (if needed)***

 

A segunda versão é baseada no código anterior, porém com a adição de menus que são mostrados no momento do boot. Poderá ser escolhido o Win9x ou diversos outros cenários do DOS.

 

[COMMON]
SWITCHES=/f
DOS=NoAuto
DOS=high,umb
BUFFERSHIGH=40
FILESHIGH=20
FCBSHIGH=1
LASTDRIVEHIGH=m

[MENU]
MENUITEM = win, Windows 95
MENUITEM = emm, DOS mit EMM386
MENUITEM = min, DOS nur mit HIMEM
MENUITEM = dos, DOS-Standard mit USB und CDROM
MENUITEM = nix, DOS ohne alles
MENUDEFAULT = win, 10
MENUCOLOR = 7,0

[win]
DEVICE=c:\drivers\qhmboot.sys
DEVICE=c:\drivers\umbpci.sys /i=e000-efff
DEVICEHIGH=c:\drivers\qhimem.sys /n48
DEVICEHIGH=c:\windows\ifshlp.sys

[emm]
DEVICE=c:\drivers\qhmboot.sys
DEVICE=c:\drivers\umbpci.sys /i=e400-efff
DEVICEHIGH=c:\drivers\qhimem.sys /n48
INSTALL=c:\drivers\ctmouse.exe

[min]
DEVICE=c:\drivers\qhmboot.sys
DEVICE=c:\drivers\umbpci.sys /i=d000-efff
DEVICEHIGH=c:\drivers\qhimem.sys /n48
INSTALL=c:\drivers\ctmouse.exe

[dos]
DEVICE=c:\drivers\qhmboot.sys
DEVICE=c:\drivers\umbpci.sys /i=e400-efff
DEVICEHIGH=c:\drivers\qhimem.sys /n48
DEVICEHIGH=c:\windows\emm386.exe ram auto
DEVICEHIGH=c:\drivers\usbaspi.sys /v
DEVICEHIGH=c:\drivers\di1000dd.sys
DEVICEHIGH=c:\drivers\qcdrom.sys /d:mycdrom
INSTALL=c:\drivers\shcdx33a.com /d:mycdrom
INSTALL=c:\drivers\ctmouse.exe

[nix]

[COMMON]
rem ***insert your soundcard config.sys driver here (if needed)***

 

autoexec.bat
______________________________________________________________

O primeiro código é um versão mais simples de configuração do autoexec. Se estiver usando uma versão diferente do DOS 7.0, altere todas as ocorrências “c:\windows” para o diretório de seu DOS instalado.

 

@ECHO OFF

rem Prettify the command prompt:
PROMPT $P$G

rem Optional: Set a compact DIR listing if preferred
SET DIRCMD=/w

rem Set important directories in the search path (extend it as you need)
PATH=c:\windows;c:\windows\command;c:\windows\system\;

rem Set the Win9x temp directory
SET TEMP=c:\windows\temp
SET TMP=c:\windows\temp

rem ***Insert your soundcard autoexec.bat driver here (if needed)***

rem If the soundcard driver does not set it on its own, you might need to set the BLASTER and
rem maybe the ULTRASND variable as well (make sure the settings fit your hardware configuration)
SET ULTRASND=240,7,7,7,7
SET BLASTER=A220 I5 D1 H5 P330 T4

rem Start windows by hand if autostarting it was disabled in msdos.sys
win

 

A segunda versão é baseada no código anterior, porém com a adição de menus que são mostrados no momento do boot.

 

@ECHO OFF

PROMPT $P$G
SET DIRCMD=/w

PATH=c:\windows;c:\windows\command;c:\windows\system\;

SET TEMP=c:\windows\temp
SET TMP=c:\windows\temp

rem ***Insert optional autoexec.bat drivers needed under both Win9x and plain DOS here***

rem ***Insert your soundcard autoexec.bat driver here (if needed)***

SET ULTRASND=240,7,7,7,7
SET BLASTER=A220 I5 D1 H5 P330 T4

GOTO %CONFIG%

:win

rem ***Insert optional autoexec.bat drivers only needed under Win9x here***

win
GOTO ende

:emm
:min
:nix
:dos

rem ***Insert optional autoexec.bat drivers not needed under Win9x here***

:ende


system.ini
______________________________________________________________

Quando estiver executando o DOS sob o Windows (win9x), algumas opções de configuração são necessárias no arquivo system.ini.

[386Enh]
;Tell Win9x to use the memory between D000 and E000 for an EMS page frame
;Thus, there is no longer the need for EMM386, thus conserving conventional memory
;Make sure the selected memory area is compatible with the one left free by UMBPCI
EMMPageFrame=D000

;Load some parts of Win9x up, this can conserve memory but also cause problems on some machines
LocalLoadHigh=1

;If there are problems with the video BIOS, tell Win9x not to use the memory occupied by it
EMMExclude=C000-CFFF


Instale nosso aplicativo com a lista de monitores que aceitam 15 kHz e tenha essa informação a qualquer momento na palma de sua mão.  /  <!--nextpage--> &nbsp; Install our application with the list of monitors that support 15 kHz and have this information at any time in the palm of your hand.