home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
catch
/
choice.wbf
< prev
next >
Wrap
Text File
|
1995-05-18
|
578b
|
28 lines
; Example Catch file
; Copyright Sean Batten
;Note, you cannot have 2 or more copies of Clock running at the same time
additem ("Clock")
additem ("Notepad")
additem ("Cardfile")
additem ("Calculator")
Let program=Choice("Select","Choose a program to load")
;Check for no choice
if program=="" goto end
;Check to see if program is already running
Exists (program)
if @EXISTS goto query
Run (program,"")
goto end
:query
Let message=Join(program," is already running. Really load?")
Let a=ask ("Really??",message)
if a=="YES" Run(program,"")
:end