Operating_systems-page43

Operating_systems-page43 - Jelena Mamenko Operating Systems...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Jelena Mamčenko Operating Systems Lecture Notes on Operating Systems 43 An IF ERRORLEVEL test is true if the error level tested is less than or equal to the actual error level. Therefore, such tests have to be in reverse order or the first will always be true. @ECHO OFF :START CLS ECHO -------------------- ECHO 1 – Wordprocessing ECHO 2 – Spreadsheet ECHO 3 - Exit menu to DOS ECHO -------------------- :QUERY ECHO 1, 2, or 3? GETKEY IF ERRORLEVEL 52 GOTO QUERY IF ERRORLEVEL 51 GOTO L3 IF ERRORLEVEL 50 GOTO L2 IF ERRORLEVEL 49 GOTO L1 GOTO QUERY :L1 Commands necessary to call up word processor GOTO START :L2 Commands necessary to call up spreadsheet GOTO START :L3 CLS GETKEY.COM GETKEY.COM is a small file that you need to create to allow the example above to work. If you are not comfortable with the procedure outlined below
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/29/2011 for the course CSE 362 taught by Professor Mavin during the Spring '09 term at SUNY Stony Brook.

Ask a homework question - tutors are online