C:\STYLEMD>TYPE NOTES.TXT

MS-DOS System Configuration Notes

Reviewing AUTOEXEC.BAT and CONFIG.SYS.

AUTOEXEC.BAT

<span class="code-line">@ECHO OFF</span>
<span class="code-line">PROMPT $P$G</span>
<span class="code-line">PATH=C:\DOS;C:\UTILS;C:\NC</span>
<span class="code-line">SET BLASTER=A220 I5 D1 H5 P330 T6</span>
<span class="code-line">SET TEMP=C:\TEMP</span>
<span class="code-line">LH C:\DOS\SMARTDRV.EXE /X</span>
<span class="code-line">LH C:\MOUSE\MOUSE.COM</span>
<span class="code-line">REM LH C:\DOS\MSCDEX.EXE /D:MSCD001 /L:D</span>
<span class="code-line">MODE CON CODEPAGE PREPARE=((850) C:\DOS\EGA.CPI)</span>
<span class="code-line">MODE CON CODEPAGE SELECT=850</span>
<span class="code-line">KEYB US,,C:\DOS\KEYBOARD.SYS</span>
<span class="code-line">C:\NC\NC.EXE</span>

CONFIG.SYS

<span class="code-line">DEVICE=C:\DOS\HIMEM.SYS</span>
<span class="code-line">DEVICE=C:\DOS\EMM386.EXE RAM HIGHSCAN</span>
<span class="code-line">DOS=HIGH,UMB</span>
<span class="code-line">FILES=40</span>
<span class="code-line">BUFFERS=20</span>
<span class="code-line">STACKS=9,256</span>
<span class="code-line">LASTDRIVE=E</span>
<span class="code-line">REM DEVICEHIGH=C:\CDROM\MTMCDAI.SYS /D:MSCD001</span>

Memory Usage (MEM /C)

Name Size (Bytes) Type
SYSTEM 15,888 System
HIMEM 1,104 Device
EMM386 4,112 Device
COMMAND 3,568 Program
MOUSE 17,088 TSR
SMARTDRV 27,264 TSR
Free 601,344 Free

Troubleshooting Notes

IF YOU ENCOUNTER "Bad command or file name", CHECK YOUR PATH SETTING in AUTOEXEC.BAT.

USE MEM /C | MORE TO CHECK MEMORY USAGE page by page.

For CD-ROM access, uncomment the MSCDEX.EXE line in AUTOEXEC.BAT and the driver line in CONFIG.SYS.

Vim Configuration (~/.vimrc)

" Basic settings set number " Show line numbers set relativenumber " Show relative numbers set mouse=a " Enable mouse support syntax on " Enable syntax highlighting filetype plugin indent on " Enable filetype detection

" Key mappings nnoremap w :w " Save file with w inoremap jk " Map jk to Escape in insert mode

" Plugin management (using vim-plug) call plug#begin('~/.vim/plugged') Plug 'tpope/vim-fugitive' " Git wrapper Plug 'tpope/vim-surround' " Surroundings Plug 'junegunn/fzf.vim' " Fuzzy finder call plug#end()

" Code snippet (Python)

<span class="code-line"># Function to calculate factorial</span>
<span class="code-line">def factorial(n):</span>
<span class="code-line">    """Calculates factorial recursively"""</span>
<span class="code-line">    if n == 0:</span>
<span class="code-line">        return 1</span>
<span class="code-line">    else:</span>
<span class="code-line">        return n * factorial(n-1)</span>
<span class="code-line"> </span>
<span class="code-line"># Print factorial of 5</span>
<span class="code-line">result = factorial(5) # Should be 120</span>
<span class="code-line">print(f"Factorial: {result}")</span>

Use :help <command> to get help on any Vim command.

" Last saved: {{formatDate}} {{formatTime}}


This document was styled using the msdos theme with stylemd. Get the tool here: https://github.com/ddukbg/stylemd

C:\STYLEMD>_