Re: [Freedos-user] Creating a minimal freeDOS bootable image that runs a simple text editor
Hi, On Wed, Jul 13, 2022 at 10:20 PM Jerome Shidel wrote: > > > On Jul 13, 2022, at 2:29 PM, Rugxulo wrote: > > > >> FDAUTO.BAT > >> —— > >> set DOSDRV=C: > > > > If you're using FreeCOM and already in the root directory from bootup, try > > this: > > > > REM ... should be "C:\" ... > > set DOSDRV=%_CWD% > > Actually, if you are going to set an env for the drive (like in the small > example), you probably just want the drive portion (C:) and not a path (c:\). > > This allows dropping small batch files somewhere in the path with cluttering > the PATH setting. For example, you can put a MYGAME.BAT in the DOSDIR. > Something like… > > @echo off > %DOSDRV% > cd GAMES\GAME42 > QLUE.COM Don't forget that FreeCOM also supports "cdd" (IIRC, this will also work for fully-qualified filenames!): * https://help.fdos.org/en/hhstndrd/cdd.htm ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Creating a minimal freeDOS bootable image that runs a simple text editor
Hi, > On Jul 13, 2022, at 2:29 PM, Rugxulo wrote: > > Hi, > >> On Mon, Jul 11, 2022 at 6:09 AM Jerome Shidel wrote: >> >> FDCONFIG.SYS >> >> !LASTDRIVE=Z > > You probably don't actually need that many drives, I'd suggest "G" or > "P" instead (to save RAM). > >> FDAUTO.BAT >> —— >> set DOSDRV=C: > > If you're using FreeCOM and already in the root directory from bootup, try > this: > > REM ... should be "C:\" ... > set DOSDRV=%_CWD% > Actually, if you are going to set an env for the drive (like in the small example), you probably just want the drive portion (C:) and not a path (c:\). This allows dropping small batch files somewhere in the path with cluttering the PATH setting. For example, you can put a MYGAME.BAT in the DOSDIR. Something like… @echo off %DOSDRV% cd GAMES\GAME42 QLUE.COM However, since the original question is about a single use setup for a text editor. Probably, do away with setting a drive variable and just do… set DOSDIR=%_CWD%FREEDOS set PATH=%DOSDIR%\BIN Or, do away with such things, shrink the env size and use full paths in the FDAUTO. Lots of options. :-) Jerome > > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Creating a minimal freeDOS bootable image that runs a simple text editor
Hi, On Mon, Jul 11, 2022 at 6:09 AM Jerome Shidel wrote: > > FDCONFIG.SYS > > !LASTDRIVE=Z You probably don't actually need that many drives, I'd suggest "G" or "P" instead (to save RAM). > FDAUTO.BAT > —— > set DOSDRV=C: If you're using FreeCOM and already in the root directory from bootup, try this: REM ... should be "C:\" ... set DOSDRV=%_CWD% ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user