need help with Challenge Question
This batch file I'm making for BCIT has me calling, so a I think, 3 different files:
Doc1, Doc2, Doc3
"require the entry of ntothing more then a single number when launching the batch file in oder to load one of the three documents files into Wordpad.
Launch Notepad, and load one three text files (with simlar name to Wordpad files) by specfiying a sinlge number when launchin the batch file.
Does this above make any sense??
@Echo Off
Cls
REM Batch file for launching Wordad, Address Book, and Calculator
REM
REM Filename: Batch04.bat
REM
REM
REM
REM Date: 29/09/2005
REM
Echo.
Echo.
Echo *** Ensure that the printer is on and operational ***
Echo.
Echo.
Pause
ECHO 1. Doc1.rtf
ECHO 2. Doc2.rtf
ECHO 3. Doc3.rtf
CHOICE /C:123 Please choose a menu option.
IF ERRORLEVEL == 3 GOTO DOC3
IF ERRORLEVEL == 2 GOTO DOC2
IF ERRORLEVEL == 1 GOTO DOC1
IF ERRORLEVEL > 3 GOTO OPPS
:DOC1
CALL C:\Lab09\doc.bat
:Doc2
CALL C:\Lab09\doc.bat
:DOC3
CALL C:\Lab09\doc.bat
:OPPS
Echo. Please enter a number between 1 and 3.
Last edited by Cyberion : 30th Sep 05 at 04:08 PM.
|