home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
IDXUTIL6.ZIP
/
SHELL.DOC
< prev
next >
Wrap
Text File
|
1993-06-16
|
1KB
|
36 lines
SHELL.PPE is a very simple PPE to allow you to shell out to a program
during a display file or PCBTEXT entry. Here is the entire Source Code:
INTEGER Dummy
SHELL 0, Dummy, GETTOKEN(), REPLACE(TOKENSTR(),";"," ")
END
The first item is assumed to be the COMPLETE program Drive:\Path\Program.Ext
and anything else is passed to the program (except spaces will get trimmed
down, everything will be uppercase and any ';' characters will be changed
to spaces.) Here is an example usage within a CD-ROM conference INTRO file:
!C:\PCB\PPE\SHELL.PPE C:\PROG\IDX-TEST.EXE C:\PROG\IDX-RSET.CFG CDSTATUS /Q
%CDSTATUS
This will Shell out to IDX-TEST which will read the IDX-RSET.CFG file and
create the CDSTATUS file which then gets displayed upon return to the text
file. You could change the source code to:
INTEGER Dummy
SHELL GETTOKEN(), Dummy, GETTOKEN(), REPLACE(TOKENSTR(),";"," ")
END
Which would then require you to specify a 0 (or non-Zero to SHELL via
command.com) as the first parameter. This would allow running batch files.
!C:\PCB\PPE\SHELL.PPE 0 C:\PROG\IDX-TEST.EXE C:\PROG\IDX-RSET.CFG CDSTATUS /Q
%CDSTATUS
or
!C:\PCB\PPE\SHELL.PPE 1 RUNME.BAT C:\PROG\IDX-RSET.CFG CDSTATUS /Q
%CDSTATUS
>>>>>Gary Meeker