150 likes | 264 Views
Micro Op SYS (DOS). Chapters 8, 10, 12, 13, 14. DOS Commands. DEFRAG SCANDISK MSAV MSBACKUP. DOS Commands (cont). FDISK MSD SYS. Types of RAM Memory. Conventional Memory 0K to 640K Everything must run in conventional memory Upper Memory 640K to 1MB (1024K) Device drivers and BIOS
E N D
Micro Op SYS (DOS) Chapters 8, 10, 12, 13, 14
DOS Commands • DEFRAG • SCANDISK • MSAV • MSBACKUP
DOS Commands (cont) • FDISK • MSD • SYS
Types of RAM Memory • Conventional Memory • 0K to 640K • Everything must run in conventional memory • Upper Memory • 640K to 1MB (1024K) • Device drivers and BIOS • Extended Memory • Above 1MB
HIMEM.SYS and EMM386.EXE • Contain in the CONFIG.SYS file • device=c:\dos\himem.sys • This allows the usage above conventional memory • Device=c:\dos\emm386.exe • This manages items in upper memory • Must come after HIMEM.SYS
Loading Items in Memory • DEVICE = • Loads a driver into conventional memory • device=c:\mouse.sys • DEVICEHIGH = • Loads a driver into upper memory • devicehigh=c:\mouse.sys • DOS=HIGH • Loads DOS into extended memory
DOS Commands • MEM /C – what is running in conventional memory • Memmaker
Batch Files • Group of commands that the computer automatically executes as a set • Similar to a program • Must popular batch file is the AUTOEXEC.BAT • Executed each time DOS starts
Batch file Commands • REM • Allows you to make comments inside the batch file that will not be executed • PAUSE • Temporarily halts execution of a batch file • Message appears after this is executed saying: “Press any key when ready…”
Batch file Commands (cont) • ECHO • Lets the computer know if to just execute command or to execute and display command • @ECHO OFF – just execute • @ECHO ON – execute and display • Also allows for messages to be printed • ECHO This is a test • This is a test • ECHO : • Gives a blank line
Create a Batch File • EDIT filename.bat • To move around the screen, you have to use the arrow keys • To access the menu at the top, press the ALT key and then the appropriate arrow keys
Special DOS commands inside Batch Files • GOTO • Allows you to skip DOS commands • CHOICE • Allows you to pick from a menu • choice /C:123E /N Choose a menu option: • /c – tells the computer to have options. If /c is not used, then CHOICE uses Y/N • /n – do not display the options after the statement • IF ERRORLEVEL number • Evaluates as true when the previously executed batch file command has an error condition equal to or greater than the number • if errorlevel 1 goto end
@ECHO OFF:STARTCLSECHO :ECHO Main MenuECHO :ECHO 1. Word ProcessingECHO 2. SpreadsheetsECHO 3. DatabaseECHO :ECHO :CHOICE /C:123E Choose a menu option:IF ERRORLEVEL 4 GOTO ENDIF ERRORLEVEL 3 GOTO DBIF ERRORLEVEL 2 GOTO SSIF ERRORLEVEL 1 GOTO WPGOTO END:DBCD\DBASEDBASEGOTO START:SS CD\LOTUS123GOTO START:WPCD\WP51WPGOTO START:END
Main Menu1. Word Processing2. Spreadsheets3. DatabaseChoose a menu option: [123E]