home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
pmsw.zip
/
PMSW
/
PMSWALL.ZIP
/
USER
/
ATIPL.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-06-21
|
3KB
|
90 lines
/* rexx */
if 0 < RxFuncQuery('SysLoadFuncs') THEN DO;
Call rxfuncadd 'SysLoadFuncs','REXXUTIL','SysLoadFuncs';
Call SysLoadFuncs;
END;
/* Switch desktop focus to ourself by name */
'@MODE CO80,10'
'@PMSW *AT IPL*'
CALL BEEPATTN;
/* Define highlight color, error color, normal color */
HC="
";EC="
";NC="
"
call charout ,NC"H"
/* Prompt the user whether to start LAN requestor. */
call charout , HC'HAtIPL: do you want to start requester? [y]/n 'EC'> 'NC;
KeyScan=SysGetKey('NOECHO'); KeyCode=c2d(KeyScan);
if KeyCode=27 then do; call Abandon; exit; end;
if \(KeyCode=78 | KeyCode=110) then do;
call charout ,"Y";
'@START "StartReq" /C /min c:\user\startreq.cmd';
call charout , NC"5HStarted Network Requester";
end;
else call charout ,"N";
/* Prompt user to start TCP/IP interface. Replace this with COMMMGR if no TCP. */
call charout ,HC'HAtIPL: do you want to start TCP functions? [y]/n 'EC'> 'NC;
KeyScan=SysGetKey('NOECHO'); KeyCode=c2d(KeyScan);
if KeyCode=27 then do; call Abandon; exit; end;
if \(KeyCode=78 | KeyCode=110) then do;
call charout ,"Y";
'@START "StartTCP" /c /min C:\USER\STARTTCP.CMD';
call charout , NC"5HStarted TCP services starter.";
end;
else call charout ,"N";
call charout , EC'5H── AtIPL completed ──'NC;
Call SysSleep 3;
/* Start other local applications here. MemSize is PM memory monitor. */
'@PMSW "*Resources*" /r';
if RC \= 1 then do;
Call SysSetObjectData '<MEMSIZE>','OPEN=DEFAULT;'
'@c:';'@cd \user';'@Start /C /MIN BRUCEOPN.CMD'
end;
'@PMSW "*ACCENT*" /r';
if RC \= 1 then '@start "AccentPM" /pm accentpm'
call charout ,""
'@exit'; RETURN;
Abandon:
call charout ,"
";Call SysSleep 1;
call charout ,"20H*** ABORTED ***";
CALL SysSleep 2;
Call charout ,"
"
return;
BeepAttn: procedure
/* C scale */
note.1 = 262 /* middle C */
note.2 = 294 /* D */
note.3 = 330 /* E */
note.4 = 349 /* F */
note.5 = 392 /* G */
note.6 = 440 /* A */
note.7 = 494 /* B */
note.8 = 524 /* C */
duration = 64
dur.1 = duration
duration = reduce(duration)
dur.2 = duration
duration = reduce(duration)
dur.3 = duration
duration = reduce(duration)
dur.4 = duration
duration = reduce(duration)
dur.5 = duration
duration = reduce(duration)
dur.6 = duration
duration = reduce(duration)
dur.7 = duration
duration = reduce(duration)
dur.8 = duration
do i=1 to 8
call beep note.i,dur.i
end
return
reduce: procedure
arg factor
return (factor*3)%4