Resending with FDAUTO.BAT as a file attachment (renamed FDAUTO.TXT) so
it's easier to try out the config.


Jim
@ECHO OFF
REM - Updated AUTOEXEC file

REM - set basic environment

set DOSDRV=C:
set DOSDIR=%DOSDRV%\FREEDOS

path %DOSDIR%\BIN
if not exist %DOSDIR%\LINKS\NUL goto NOLINKS
path %PATH%;%DOSDIR%\LINKS
:NOLINKS

set NLSPATH=%DOSDIR%\NLS
set HELPPATH=%DOSDIR%\HELP

set TEMP=%DOSDIR%\TEMP
set TMP=%TEMP%

if "%CONFIG%"=="5" goto END

set OS_NAME=FreeDOS
set OS_VERSION=T2403

REM - cfgfile and autofile might be deprecated in future

set CFGFILE=%DOSDRV%\FDCONFIG.SYS
set AUTOFILE=%DOSDRV%\FDAUTO.BAT
alias cfg=edit %CFGFILE%
alias auto=edit %AUTOFILE%

REM - detect CPU, load CPU-specific configs

if not exist %DOSDIR%\BIN\VINFO.COM goto ENDCPU
%DOSDIR%\BIN\VINFO.COM /m
if errorlevel 3 goto CPU386
if errorlevel 2 goto CPU286
goto ENDCPU

:CPU286

fdapm APMDOS
ctmouse

goto ENDCPU

:CPU386
if "%CONFIG%"=="4" goto CPU286

lh fdapm APMDOS
lh ctmouse
REM lh share

if not exist %DOSDIR%\BIN\DOSLFN.CON goto NOLFN
lh %DOSDIR%\BIN\DOSLFN.CON
REM - Add other stuff here once LFN is loaded..
:NOLFN

if not exist %DOSDIR%\BIN\CDROM.BAT goto NOCDROM
call %DOSDIR%\BIN\CDROM.BAT
REM - Add other stuff here once CDROM is loaded..
:NOCDROM

:ENDCPU

REM - load other configs using external BAT files

if not exist %DOSDIR%\BIN\FDNET.BAT goto NONET
call %DOSDIR%\BIN\FDNET.BAT
REM - Add other stuff here once FDNET is loaded..
:NONET

if not exist %DOSDIR%\BIN\FDASSIST.BAT goto NOASSIST
call %DOSDIR%\BIN\FDASSIST.BAT
:NOASSIST

if not exist %DOSDIR%\BIN\WELCOME.BAT goto NOHELLO
call %DOSDIR%\BIN\WELCOME.BAT
:NOHELLO

MEM /C /N

REM - local settings

set BLASTER=A220 I5 D1 H5 P330
set DIRCMD=/O:GNE /Y
set COPYCMD=/-Y

REM nlsfunc %DOSDIR%\BIN\COUNTRY.SYS
REM display CON=(EGA,858,2)
REM mode CON CP PREP=((858) %DOSDIR%\CPI\EGA.CPX)
REM keyb US,858,%DOSDIR%\BIN\KEYBOARD.SYS
REM chcp 858
REM mkeyb UK

alias reset=fdisk /reboot
alias reboot=fdapm warmboot
alias halt=fdapm poweroff
alias shutdown=fdapm poweroff

:END
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to