BetaONE will rise again!


Reply
  #1  
Old 30th Sep 05, 08:40 AM
Cyberion Cyberion is offline
eh!!
 
Join Date: Jul 2001
Location: BC, Canada
Posts: 1,449
Cyberion is an unknown quantity at this point
Send a message via MSN to Cyberion Send a message via Yahoo to Cyberion
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel Dual Core Question PCTech Hardware Support 2 20th Jul 05 04:01 PM
Audiovox cdm-8910 Question adams Chit Chat 0 9th Jun 05 04:48 AM
RADEON X850 XT 512MB: Not a Significant Design Challenge NewsBot NeoWin News 0 25th Feb 05 05:00 PM
I have a question about something largeknob Coders Corner 1 10th Nov 04 03:06 AM
When posting a question User Needs Software Support 0 1st Nov 04 05:31 AM


All times are GMT +1. The time now is 11:39 AM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.