home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UPCHECK / UPLOAD20.ZIP / UPLOAD2.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1993-10-24  |  1KB  |  109 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     String   STRING001
  21.     String   STRING002
  22.     String   STRING003
  23.     String   STRING004
  24.     String   STRING005
  25.  
  26. ;------------------------------------------------------------------------------
  27.  
  28.     PrintLn "Thanks for the uploads!"
  29.     WrUSys
  30.     STRING005 = ""
  31.     FOpen 1, PPEPath() + "UPLOAD.CFG", 0, 0
  32.     FGet 1, STRING002
  33.     If (Upper(STRING002) == "NONE") Goto LABEL002
  34.     FGet 1, STRING003
  35.     FGet 1, STRING004
  36.     For INTEGER001 = 1 To STRING002
  37.         FGet 1, STRING001
  38.         If (Ferr(1)) Goto LABEL002
  39.         If (Right(STRING001, Len(STRING001) - InStr(STRING001, ".")) == String(CurConf())) Then
  40.             STRING005 = STRING001
  41.             Goto LABEL001
  42.         Endif
  43.     Next
  44.     If (STRING005 == "") STRING005 = STRING004
  45.     :LABEL001
  46.     Shell 1, STRING001, PPEPath() + "UPLOAD.BAT", STRING005 + " " + STRING003
  47.     :LABEL002
  48.     End
  49.  
  50. ;------------------------------------------------------------------------------
  51. ;
  52. ; Usage report (before postprocessing)
  53. ;
  54. ; ■ Statements used :
  55. ;
  56. ;    1       End
  57. ;    6       Goto 
  58. ;    5       Let 
  59. ;    1       PrintLn 
  60. ;    5       If 
  61. ;    1       FOpen 
  62. ;    4       FGet 
  63. ;    1       Shell 
  64. ;    1       WrUSys
  65. ;
  66. ;
  67. ; ■ Functions used :
  68. ;
  69. ;    5       +
  70. ;    1       -
  71. ;    3       ==
  72. ;    1       <
  73. ;    1       <=
  74. ;    2       >=
  75. ;    2       !
  76. ;    2       &&
  77. ;    1       ||
  78. ;    1       Len(
  79. ;    1       Upper()
  80. ;    1       Right()
  81. ;    1       Ferr()
  82. ;    1       InStr()
  83. ;    1       String()
  84. ;    1       CurConf()
  85. ;    2       PPEPath()
  86. ;
  87. ;------------------------------------------------------------------------------
  88. ;
  89. ; Analysis flags : S
  90. ;
  91. ; S - Shell to DOS ■ 5
  92. ;     This may be normal if the PPE need to execute an external command,
  93. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  94. ;     or usefull (sorting, maintenance,...). Check!
  95. ;     ■ Search for : SHELL
  96. ;
  97. ;------------------------------------------------------------------------------
  98. ;
  99. ; Postprocessing report
  100. ;
  101. ;    1       For/Next
  102. ;    0       While/EndWhile
  103. ;    1       If/Then or If/Then/Else
  104. ;    0       Select Case
  105. ;
  106. ;------------------------------------------------------------------------------
  107. ;                 AEGiS Corp - Break the routines, code against the machines!
  108. ;------------------------------------------------------------------------------
  109.