home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
lockdoor.zip
/
BRENET.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-06
|
1KB
|
35 lines
/* This REXX script is called from a menu type 10 and when executed will */
/* check for the existence of a flag file in the directory of the target */
/* door game. If the file exists it will write an AdeptREXX message to the */
/* user's screen. if the flag does not exist it will call the door .cmd. */
/* This file should reside in the Adept\Menus directory */
/* */
/* written by Jerry Jones * Enigma, A Piece of the Puzzle * 1:3602/212.0 */
/* */
ARG linenum
file = 'd:\adept\doors\breip\in-use.flg'
IF STREAM(file, 'c', 'query exist') <> '' THEN
signal notnow
else signal playit
playit:
ADDRESS Adept
AdeptMenuType(linenum,801,'cmd.exe /c breip.cmd {LN')
signal exit
notnow:
ADDRESS Adept
AdeptPrint(linenum,'{CS\r\n')
AdeptPrint(linenum,'{FF┌───────────────────────────────────────────────────────────┐\r\n')
AdeptPrint(linenum,'{FF│{F8 Sorry, but this single user door is currently in use. {FF│ \r\n')
AdeptPrint(linenum,'{FF│{F8 Please try again a little later. {FF│ \r\n')
AdeptPrint(linenum,'{FF└───────────────────────────────────────────────────────────┘\r\n')
AdeptPrint(linenum,'{PC\r\n')
exit:
exit