⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.txt

📁 GNU FreeDOS兼容MS DOS很好的东东.
💻 TXT
字号:
Configuring your DOS system for use:------------------------------------When booting DOS, you will find it only supports a subset ofthe devices available on many computers.  To support additionaldevices and advanced features, device specific driver andmemory resident software most be loaded.  This allows thekernel to be easily extended to support hardware not presentlyavailable and take better advantage of installed hardwarewithout wasting resources on computers lacking it.  Thissoftware is generally loaded during the kernel initializationphase, with details describing what to load expressed in thefile CONFIG.SYS.  The FreeDOS kernel will first look for afile named FDCONFIG.SYS, should it exist, it will will be usedinstead of CONFIG.SYS; this allows the FreeDOS kernel to coexistand be configured differently than another DOS kernel.  Thereare additional options available to adjust other aspects of thekernel's behaviour.  Note: some options listed below are FreeDOSspecific and will not work when using other/older DOS kernels.Below is list of all documented FreeDOS config.sys supportedoptions; additional undocumented options may exist but are notmeant for normal usage.BREAKUsage:  break=on|offSet extended Control-C/Control-Break checking to on [default] or off.When set to on, the kernel will perform the check (and invoke currenthandler if pressed) prior to most int 21h calls.  When set to off,the kernel only performs the check on I/O calls using standard streams.e.g.  break=offBUFFERSBUFFERSHIGHUsage:  buffers=nn[,n] where nn is in range 1-99 & n is in range 1-8Memory buffers used by the kernel; primary[,secondary]The secondary buffer option is available for compatibility withother DOS kernels, but is ignored by the FreeDOS kernel.e.g.  buffers=20COUNTRYUsage:  country=nnn[,[mmm][,[d:][path]file]]Only limited country=nnn support is presently available.Enables/sets international features of DOSnnn is country code (001==US)mmm is code page (437 is default, 850 is updated form, 1252 for Windows)[drive][path]file specifies file with country specific datae.g.  country=001,850,C:\FDOS\BIN\COUNTRY.SYSDEVICEUsage:  device=[d:][path]file [options]Load the device driver specified by d:path\file (into conventional[low 640KB] memory).  The options are for the driver itself; referto documentation that came with your particular device for supportedoptions and their usage.e.g.  device=himem.sysDEVICEHIGHUsage:  devicehigh=[d:][path]file [options]This is just like device= statement, except it attempts to loadthe device driver into high memory first (failing that it shouldload it in conventional memory).  Note: The order you load devices may have a large impact on amountof free memory available.  In general try to load large (in memoryusage) programs into high memory first.Important: You should have a high memory manager such as FDXMS orHimem installed (prior device=FDXMS.SYS or device=HIMEM.SYS) beforeusing this option.e.g.  devicehigh=atapicdd.sys /D:FDCD0001DOSUsage:  dos=high|low,umb|noumbIndicates whether the kernel should try to load itself intohigh memory or only conventional (low), and whether to linkupper memory blocks in with normal memory or not.  Note: only one set need be given, ie dos=high and dos=noumb are ok.Important: if you specify dos=high[,umb|noumb] then you must alsoload a high memory manager (first), ie FDXMS or HIMEMe.g.  dos=high,umbor    dos=low,noumbDOSDATAUsage:  dosdata=umbTry to load kernel data into Upper Memory Blocks; effectivelysame as using the <name>HIGH variant of kernel parameters,such as fileshigh, lastdrivehigh, and stackshigh (does noteffect drivers loaded using device= or install=).e.g.  dosdata=umbECHOUsage:  ECHO Message to be displayed to user.ECHO displays (echos) its arguments to the console duringconfig.sys processing when device drivers are loaded (whenDEVICE= lines are executed).e.g.        ECHO loading driver 1      device=Driver1.sys      ECHO driver1 successfully loadedEECHOUsage:  EECHO Message with ANSI Escape SequenceEECHO allows for echo-ing ANSI Escape Sequences(redefines keyboard input for example).  Use a dollar sign ($)to represent the ANSI Escape character.  Note: requires anansi driver loaded prior to use.FCBSUsage:  fcbs=nnnwhere nnn is in range 1-255Sets the number of File Control Blocks to reserve room for.As file control blocks have been replaced by file handles(see files) most applications will not need this value adjusted.e.g.  fcbs=4FILESFILESHIGHUsage:  files=nnn where nnn is in range 8-255 (default 8)Specifies how many files allowed open at once (reservesmemory necessary to support opening this many files).Note: there are other restrictions, so a given program       may not be able to actually open this manyA good number is 20, though some programs suggest/require30, 40, or even 255e.g.  files=20INSTALLINSTALLHIGHUsage:  install=[d:][path]file [options]Load the program specified by d:path\file.  Generally used toload TSR (terminate and stay resident) programs with a minimalenvironment block.  The options are for the program itself; referto documentation that came with your particular software forsupported options and usage.e.g.  install=nansi.comLASTDRIVELASTDRIVEHIGHUsage:  lastdrive=x where x is last drive letter available for use; A-Ze.g. lastdrive=zNUMLOCKUsage:  numlock=on|offSet the keyboard number lock to on or off.e.g.  numlock=offREMUsage:  rem Your remarks!This provides the ability to place comments within the configurationfile.  The text following the rem until the end of the line isreached are ignored.  This may also be used to temporarily disableloading a particular device or other option.SCREENUsage:  screen=xxSwitches into videomode xxx  (INT10/11xx/000)where xx should be 0x11 for 28 lines or 0x12 for 43/50 (EGA/VGA) linesSETUsage:  set ENVVAR=valueSets the environment variable to provided value.e.g.  set HOME=C:\home\meSHELLSHELLHIGHUsage:  shell=[d:][path]file [options]Indicates the shell to use; often used to alter COMMAND.COM's behavior.Note: it is command.com that processes AUTOEXEC.BAT; by using theshell option, you can get command.com to process a differently namedfile (such as FDAUTO.BAT for coexisting with another DOS using differentconfiguration options) or run a completely different command interpretersuch as 4DOS or a (unix) sh variant.e.g.  shell=C:\COMMAND.COM /E:256 /PSTACKSSTACKSHIGHUsage:  stacks=nn,nnnwhere nn is in range 0,8-64 and nnn is in range 32-512Changes number of stacks availablenn is number of different stacks and nnn is size in bytes of each onee.g.  stacks=16,256SWITCHARUsage:  switchar=cSets the default switchar to character c.  Where c is a single characterthat is used to indicate a command line parameter is an option switch.The default is a forward slash (/).  Note: This simply sets the valuereturned by a get switchar query, it will not effect programs that usehardcoded switch characters.e.g.  switchar=-VERSIONUsage:  version=x.yFreeDOS specific command to specify what DOS version to report.e.g.  version=6.2Advanced - FreeDOS specific CONFIG.SYS menu processing:-------------------------------------------------------normal	FILES=20	DEVICE=MyNetWorkDriver.sys'?' - ALWAYS ask if a single line shall be executed	FILES=20	?DEVICE=MyNetWorkDriver.sys'!' - NEVER ask if a single line shall be executed, even if single stepping	!FILES=20	!DOS=HIGH,UMB	!BUFFERS=30	DEVICE=MyNetWorkDriver.sysconfiguration management - you may compose several configurations,using following special commands:MENUMENU  select your configurationMENUMENU  use (0) for basic configurationMENU  use (1) for CDROM operationMENU  use (2) for NETWORK configurationMENUMENUDEFAULT=0,1				( configuration 0, wait 1 second)1?  rem CDROM1?  device=CDROM.SYS2?  rem NETWORK2?  device=MyNetworkDriver.SYSAlthough this is different than MSDOS menuing possibilities, it allows for selecting from multiple options during bootup whileremaining simple.  It, however, does not allow for multi-levelmenuing based configuration schemes.It's also possible to combine menu options, to avoid writing thing every time again.constructions like 0?devicehigh?=cdrom.sys are also possible("if menu option 0 chosen, ask if you want to load this driver")the selected configuration can be determined in AUTOEXEC.BAT in theenvironment variable CONFIG like        if %CONFIG% == 0 echo configuration 0 selectedhowever, if you have no menu's in config.sys, then %config% has no value,thus resulting in "IF == 0 echo configuration 0 selected."(which causes syntax errors as there's nothing on the left side of == )That's why you better use something like:if [%config%]==[0] echo configuration 0 selected.        -or-if "%config%"=="0" echo configuration 0 selected.then if there is no menu you have: "IF []==[0] echo configuration 0 selected."(which will of course output nothing)thus my config.sys now looks like!files=20!dos=high,umb!break=off!buffers=30!screen=0x12!lastdrive=z!shellhigh=a:\command.com /p /e:512 /MSGMENUMENU 0 - SoftIce+HIMEM+Network (default)MENU 1 - SoftIce+HIMEMMENU 2 -         HIMEM+EMM386MENUMENUDEFAULT=0,001? DEVICE=C:\NUMEGA\S-ICE.EXE /TRA 3000 /SYM 400012?DEVICE=himem.exe01? DEVICE=UMBPCI.SYS2?  DEVICE=EMM386.EXE NOEMS0?device=c:\ntclient\ifshlp.sysDEVICE=ATAPICDD.SYS /D:MSCD000Full Screen Menus (thanks to Rune Espeseth)Use MENUCOLOR=foreground[,background] to obtain a full screen menuwhere you can use the arrow keys. Example (note that box drawingcharacters are used that look strange in other character sets):REM *** This is the FreeDos Config.sys ***REM *** executed before autoexec.bat   ***REM *** Set white foreground, red background ***menucolor=7,4files=20buffers=20REM *** The Menu ***MENUMENU  赏屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -