On Fri, Feb 2, 2024 at 5:30 PM Jim Hall <jh...@freedos.org> wrote:
>
> Hi everyone
>
> I've been testing the new 2402 release, and decided I finally wanted
> to streamline (cleanup?) the FDAUTO.BAT file to make it more readable
> and easier to see what's happening.
>
> First, here's my text description of what's going on in FDAUTO. I'll
> reply with a copy of the FDAUTO that I'm updating for my own system.
>[..]


And here is my first pass at a cleaned up FDAUTO. I'm not done, but
this is my work in progress. I think it's more readable: (see REM
comments at the start with a list of changes)

> @ECHO OFF
>
> REM - updated FDAUTO boot file
>
> REM - changes: all command names are lowercase, all env vars uppercase,
> REM - all "REM" are uppercase, all goto labels are uppercase.
> REM - "mem" moved to end. All empty "echo." statements removed.
> REM - streamline INITCDROM (only needs to be one line).
> REM - streadmline SUPPORT386 (move test to top).
> REM - moved local settings to FINAL.
> REM - streamlined the LFN test (REM'd out anyway).
> REM - streamlined the network test (user adds their own stuff anyway).
> REM - removed unneeded ONLY8086 section (prev now jumps to FINAL).
>
> set DOSDRV=C:
> set DOSDIR=C:\FreeDOS
>
> set OS_NAME=FreeDOS
> set OS_VERSION=T2402
>
> set PATH=%DOSDIR%\BIN
> if exist %DOSDIR%\LINKS\NUL set PATH=%path%;%DOSDIR%\LINKS
>
> set LANG=EN
> set TZ=UTC
>
> set NLSPATH=%DOSDIR%\NLS
> set HELPPATH=%DOSDIR%\HELP
>
> set TEMP=%DOSDIR%\TEMP
> set TMP=%TEMP%
>
> set DIRCMD=/P /OGN /Y
> set COPYCMD=/-Y
>
> set BLASTER=A220 I5 D1 H5 P330
>
> set autofile=C:\FDAUTO.BAT
> set cfgfile=C:\FDCONFIG.SYS
>
> REM alias cfg=edit %CFGFILE%
> REM alias auto=edit %AUTOFILE%
> alias reboot=fdapm warmboot
> alias reset=fdisk /reboot
> REM alias halt=fdapm poweroff
> alias shutdown=fdapm poweroff
>
> if "%CONFIG%"=="5" goto END
>
> if not exist %DOSDIR%\bin\vinfo.com goto FINAL
>
> vinfo /m
> if errorlevel 3 goto SUPPORT386
> if errorlevel 2 goto SUPPORT286
>
> goto FINAL
>
> :SUPPORT286
>
> fdapm APMDOS
> ctmouse
> goto FINAL
>
> :SUPPORT386
>
> if "%CONFIG%"=="4" goto SUPPORT386LOW
>
> lh fdapm APMDOS
> REM lh share
>
> REM if not exist %DOSDIR%\BIN\DOSLFN.COM goto NOLFN
> REM lh %DOSDIR%\BIN\DOSLFN.COM
> REM set DIRCMD=%DIRCMD% /LFN
>
> :NOLFN
>
> ctmouse
> goto INITCDROM
>
> :SUPPORT386LOW
>
> fdapm APMDOS
> ctmouse
>
> :INITCDROM
>
> if exist %DOSDIR%\bin\cdrom.bat call %DOSDIR%\bin\cdrom.bat
>
> :FINAL
>
> if exist %DOSDIR%\bin\fdnet.bat call %DOSDIR%\bin\fdnet.bat start
> REM - add your own networking commands here: (if any)
>
> if exist %DOSDIR%\bin\fdassist.bat call %DOSDIR%\bin\fdassist.bat
> if exist %DOSDIR%\bin\cdrom.bat call %DOSDIR%\bin\cdrom.bat display
> if exist %DOSDIR%\bin\welcome.bat call %DOSDIR%\bin\welcome.bat
>
> REM - add your own settings here: (here are some examples)
>
> 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
>
> mem /C /N
>
> echo Warning: This is a FreeDOS development build and is for testing purposes.
> echo It may exhibit behavior vary different from a release build and may not 
> be
> echo suitable for regular use. For general use, please consider using the 
> latest
> echo release build available at http://freedos.org
>
> :END


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

Reply via email to