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.

@ECHO OFF

-set a bunch of env variables
-set some aliases

-if CONFIG is 5 (safe mode) goto END

-if VINFO doesn’t exist, goto ONLY8086 (this really should just jump to FINAL)
-VINFO /m (gets CPU level)
-if 3, goto SUPPORT386
-if 2, goto SUPPORT286

:ONLY8086 (nothing really jumps here, it’s just a dummy label because
it’s not a ‘386 or ‘286)

-show MEM
-goto FINAL

:SUPPORT286 (only if this is a ‘286)

-load FDAPM
-load CTMOUSE
-show MEM
-goto FINAL

:SUPPORT386 (only if this is a ‘386)

-some commented out lines to set codepage and keyboard settings

-if CONFIG is 4 (low with some drivers) goto SUPPORT386LOW

-loadhigh FDAPM with APMDOS (this is also loaded in SUPPORT386LOW)
-commented out loadhigh SHARE

-commented out if DOSLFN, then goto USELFN
-goto NOLFN

:USELFN

-loadhigh DOSLFN
-set DIRCMD to use LFN

:NOLFN

-load CTMOUSE
-goto INITCDROM

:SUPPORT386LOW

-load FDAPM with APMDOS
-load CTMOUSE

:INITCDROM

-if the CDROM.BAT doesn’t exist, then goto FINAL
-call CDROM.BAT

:FINAL

-show MEM

-if FDNET.BAT doesn’t exist, then goto NONETWORK
-call FDNET.BAT START
-if errorlevel 1, goto NONETWORK

-commented out line to say you can load other stuff here after network loads

:NONETWORK

-if FDASSIST.BAT exists, call FDASSIST.BAT
-if CDROM.BAT exists, call CDROM.BAT
-if WELCOME.BAT exists, call WELCOME.BAT

-print some other messages here

:END (only jumps here if safe mode)

(done)


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

Reply via email to