home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
UT_SYSTM
/
ICONDOS.ZIP
/
RUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-06-21
|
3KB
|
109 lines
@echo off
if %1!==! goto uhoh
REM *** IconDOS - DEMO MENU ***
REM
REM This batch file illustrates how to set up a single batch file to handle
REM any number of IconDOS menu icons. Each icon in the demo menu (DEMO.MNU)
REM has a command string which calls this file, RUN.BAT, and passes a single
REM unique parameter. This parameter identifies the icon that was selected.
REM The 'goto %1' below transfers control to a label in this file matching
REM this parameter. From there the commands are executed. For example, the
REM icon for dBase IV has the command string: 'RUN DB4'. This command string
REM calls RUN.BAT with the parameter, 'DB4'. DOS replaces the %1 below with
REM the first parameter found in the command string (DB4 in this case)
REM which results in 'goto DB4'.
goto %1
:123
REM To actually execute Lotus from this icon, replace the 'echo' line below
REM with the commands to change to your Lotus directory and execute 123.
REM These commands should look something like:
REM CD\LOTUS
REM 123
REM The same general method can be used to set up a command set for any of
REM the labels/parameters listed below.
echo DEMO MENU - You selected Lotus 1-2-3
goto done
:DB4
echo DEMO MENU - You selected dBase IV
goto done
:WS
echo DEMO MENU - You selected WordStar
goto done
:WP
echo DEMO MENU - You selected WordPerfect
goto done
:QUICKEN
echo DEMO MENU - You selected Quicken
goto done
:MOUSE
echo DEMO MENU - You selected the Logitech Mouse Driver
goto done
:COREL
echo DEMO MENU - You selected Corel Draw
goto done
:CALC
echo DEMO MENU - You selected the Calculator
goto done
:WINDO
echo DEMO MENU - You selected MicroSoft Windows
goto done
:PAINT
echo DEMO MENU - You selected Paint
goto done
:BJ
echo DEMO MENU - You selected Black Jack
goto done
:FLY
echo DEMO MENU - You selected Flight Simulator
goto done
REM *** Below are the options for the submenu, SUBDEMO.MNU ***
:NETWK
echo DEMO SUB-MENU - You selected Network
goto done
:NOTE
echo DEMO SUB-MENU - You selected NotePad
goto done
:CD
echo DEMO SUB-MENU - You selected CD-ROM
goto done
:uhoh
REM This message prints if no parameters were passed
echo This batch file requires IconDOS
goto stop
:done
REM This is the clean up area which contains the commands needed to return
REM to IconDOS after running a command set. For an actual menu, the
REM 'echo' line below should be replaced with something like:
REM C:
REM CD\MENU
echo If this had been an actual menu, your software would be running now.
ICONDOS DEMO
:stop