home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
CMFL_100.ZIP
/
CMFL.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-01-25
|
6KB
|
272 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
String STRING001
String TSTRING002(400)
String TSTRING003(400)
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
String STRING025
String STRING026
;------------------------------------------------------------------------------
STRING009 = "C"
STRING010 = "M"
STRING011 = "F"
STRING012 = "L"
STRING008 = STRING009 + STRING010 + STRING011 + STRING012
STRING014 = "v"
STRING015 = "1"
STRING016 = "."
STRING017 = "0"
STRING018 = "0"
STRING013 = STRING014 + STRING015 + STRING016 + STRING017 + STRING018
STRING019 = PPEPath() + STRING008 + String(CurConf()) + ".DAT"
If (!Exist(STRING019)) STRING019 = PPEPath() + STRING008 + ".DAT"
If (Exist(STRING019)) Goto LABEL001
Newline
PrintLn "@X08[@X0FError@X08] @X07Configuration File Error!"
Log "
" + STRING008 + " " + STRING013 + " " + "
" + "[" + "E" + "r" + "r" + "o" + "r" + "]", 0
End
:LABEL001
STRING025 = "N"
STRING020 = STRING008
STRING021 = "\PCB\GEN\DIR.LST"
STRING022 = "\PCB\DIR\DIRU."
STRING023 = "Z"
STRING024 = ".ZIP"
FOpen 1, STRING019, 0, 0
FGet 1, STRING006
If (STRING006 <> "") STRING020 = RTrim(Left(Upper(STRING006), 6), " ")
FGet 1, STRING006
If ((Upper(STRING006) == "A") || (Upper(STRING006) == "Z")) STRING023 = Upper(STRING006)
FGet 1, STRING006
If (STRING006 <> "") STRING021 = Upper(STRING006)
FGet 1, STRING006
If (Left(Upper(STRING006), 1) == "Y") STRING025 = "Y"
FGet 1, STRING006
If (STRING006 <> "") STRING022 = Upper(STRING006)
FClose 1
If (Upper(STRING023) == "A") STRING024 = ".ARJ"
STRING004 = ReadLine("PC" + "Bo" + "a" + "r" + "d" + ".D" + "AT", 179)
STRING004 = STRING004 + "LIST" + Left(String(Date()), 2) + Left(Right(String(Date()), 5), 2) + "." + String(PcbNode())
STRING005 = ReadLine("PC" + "Boa" + "rd." + "DAT", 179)
STRING005 = STRING005 + STRING020 + String(PcbNode()) + STRING024
If (Exist(STRING004)) Delete STRING004
If (Exist(STRING005)) Delete STRING005
Newline
PrintLn "@X07┌─────────────────────────────────────────────────────────────────────────────@X08┐"
PrintLn "@X07│ @X0FThis utility allows you to create an up-to-the-minute complete file list of @X08│"
PrintLn "@X07│ @X0Fall file directories configured by your SysOp. If you choose to continue, @X08│"
PrintLn "@X07│ @X0Fthis program will compile the listing, archive it, and FLAG it for download @X08│"
PrintLn "@X07│ @X0Fimmediately after the procedure. @X08│"
PrintLn "@X07└@X08─────────────────────────────────────────────────────────── " + "[" + "M" + "S" + "] " + STRING008 + " " + STRING013 + " ─┘"
PrintLn "@X07┌─────────────────────────@X08┐"
PrintLn "@X07│ @X0ECreate Master List? @X08│"
Print "@X07└@X08─────────────────────────┘AD"
While (STRING007 <> Chr(13)) Do
STRING007 = Inkey()
If (Upper(STRING007) == "Y") Then
DefColor
Print "YesAC"
Goto LABEL002
Endif
If (Upper(STRING007) == "N") Break
EndWhile
DefColor
PrintLn "No"
Newlines 2
End
:LABEL002
PrintLn "@X07┌─────────────────────────────────────────────────@X08┐"
PrintLn "C@X07│ @X08│"
PrintLn "C@X07└@X08─────────────────────────────────────────────────┘"
Print "AC"
FAppend 2, STRING004, 1, 0
FPutLn 2, "┌─────────────────────────────────────────────────────────────────────────────┐"
FPutLn 2, "│ MASTER FILE LIST CREATED ON: " + String(Date()) + " @ " + String(TimeAp(Time())) + " [MS] " + STRING008 + " " + STRING013 + " │"
FPutLn 2, "└─────────────────────────────────────────────────────────────────────────────┘"
FClose 2
INTEGER002 = 1
FOpen 1, STRING021, 0, 0
:LABEL003
If (Ferr(1)) Goto LABEL004
FRead 1, STRING001, 30
TSTRING003(INTEGER002) = RTrim(STRING001, " ")
FSeek 1, 30, 1
FRead 1, STRING001, 35
TSTRING002(INTEGER002) = RTrim(StripAtx(STRING001), " ")
FSeek 1, 1, 1
INTEGER001 = INTEGER002 - 1
Inc INTEGER002
Goto LABEL003
:LABEL004
FClose 1
For INTEGER002 = 1 To INTEGER001
If (Exist(TSTRING003(INTEGER002))) Then
Print "@X03Adding: @X0B" + String(TSTRING002(INTEGER002)) + " ..." + Space(35 - Len(TSTRING002(INTEGER002))) + "D"
FAppend 1, STRING004, 1, 0
FPutLn 1, Space(1)
FPutLn 1, TSTRING002(INTEGER002) + Space(69 - Len(TSTRING002(INTEGER002))) + STRING008 + " " + STRING013
FPutLn 1, "───────────────────────────────────────────────────────────────────────────────"
FClose 1
Append TSTRING003(INTEGER002), STRING004
Endif
Next
If (Upper(STRING025) == "Y") Then
Print "@X03Adding: @X0BUpLoad Directory ..." + Space(19) + "D"
FAppend 1, STRING004, 1, 0
FPutLn 1, Space(1)
FPutLn 1, "UpLoad Directory " + STRING008 + " " + STRING013
FPutLn 1, "───────────────────────────────────────────────────────────────────────────────"
FClose 1
Append STRING022, STRING004
FAppend 1, STRING004, 1, 0
FPutLn 1, Space(1)
FPutLn 1, "─────────────────────────────────────────────────────────────────────── [END] ─"
FClose 1
Endif
Print "@X8B* Archiving & Flagging File List for DownLoad *D"
If (Upper(STRING023) == "A") Then
Shell 1, STRING006, "A" + "R" + "J a -e " + STRING005, STRING004
Else
Shell 1, STRING006, "PK" + "Z" + "IP " + STRING005, STRING004
Endif
Print "@X0BThe archived file has been flagged for downloadD"
Newlines 2
Delete STRING004
Flag STRING005
Download ""
Delete STRING005
End
STRING026 = " ■ Custom Encrypt-O-Matic PPE Compression v2.15 * [/Minimum Non-Text Encryption] ■ "
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 3 End
; 14 Goto
; 37 Let
; 7 Print
; 13 PrintLn
; 18 If
; 2 FOpen
; 4 FAppend
; 6 FClose
; 5 FGet
; 11 FPutLn
; 2 DefColor
; 4 Delete
; 1 Log
; 1 Inc
; 2 Newline
; 2 Newlines
; 2 Shell
; 2 FSeek
; 2 FRead
; 2 Append
; 1 Flag
; 1 Download
;
;
; ■ Functions used :
;
; 77 +
; 3 -
; 8 ==
; 4 <>
; 1 <
; 1 <=
; 2 >=
; 9 !
; 2 &&
; 2 ||
; 2 Len(
; 12 Upper()
; 4 Left()
; 1 Right()
; 6 Space()
; 1 Ferr()
; 1 Chr()
; 3 RTrim()
; 3 Date()
; 1 Time()
; 1 TimeAp()
; 1 StripAtx()
; 1 Inkey()
; 8 String()
; 1 CurConf()
; 2 PPEPath()
; 2 PcbNode()
; 2 ReadLine()
; 5 Exist()
;
;------------------------------------------------------------------------------
;
; Analysis flags : Sf
;
; S - Shell to DOS ■ 5
; This may be normal if the PPE need to execute an external command,
; but may be actually anything... nasty (formating HD, rebooting,...)
; or usefull (sorting, maintenance,...). Check!
; ■ Search for : SHELL
;
; f - Flag files for download ■ 3
; This may be normal if a PPE needs to send some files, but since
; this statement allows flagging of any file on the hard disk, you
; have to be carefull. Check!
; ■ Search for : FLAG
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 1 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------