home *** CD-ROM | disk | FTP | other *** search
/ Carsten's PPE Collection / Carstens_PPE_Collection_2007.zip / F / FN_SCBC.ZIP / DOWNLOAD.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1995-09-02  |  1KB  |  113 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 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     String   STRING001
  21.     String   STRING002
  22.     String   STRING003
  23.  
  24. ;------------------------------------------------------------------------------
  25.  
  26.     GetUser
  27.     While (TokCount() > 0) Do
  28.         STRING001 = STRING001 + " " + GetToken()
  29.     EndWhile
  30.     Newline
  31.     Print "@POFF@@CLS@@X07Scanning Users..."
  32.     Shell 1, INTEGER001, PPEPath() + "downup.exe", "d " + Replace(Upper(U_Name()), " ", "_")
  33.     STRING002 = ReadLine(PPEPath() + "downup.cfg", 2)
  34.     DispFile PPEPath() + "\ansi\download.ans", 0
  35.     Print "@PON@"
  36.     If (ReadLine(PPEPath() + "downup.cfg", 3) == "Y") Then
  37.         AnsiPos 29, 22
  38.         InputStr "Press enter to continue_", STRING003, 8, 1, Mask_Ascii(), 4096 + 64
  39.     Endif
  40.     If (Asc(Left(STRING002, 1)) <> 32) Then
  41.         Call STRING002
  42.     Else
  43.         If (ReadLine(PPEPath() + "downup.cfg", 4) == "Y") KbdStuff "D " + STRING001
  44.     Endif
  45.     End
  46.  
  47. ;------------------------------------------------------------------------------
  48. ;
  49. ; Usage report (before postprocessing)
  50. ;
  51. ; ■ Statements used :
  52. ;
  53. ;    1       End
  54. ;    5       Goto 
  55. ;    2       Let 
  56. ;    2       Print 
  57. ;    4       If 
  58. ;    1       DispFile 
  59. ;    1       GetUser
  60. ;    1       InputStr 
  61. ;    1       Newline
  62. ;    1       Shell 
  63. ;    1       KbdStuff 
  64. ;    1       Call 
  65. ;    1       AnsiPos 
  66. ;
  67. ;
  68. ; ■ Functions used :
  69. ;
  70. ;    10      +
  71. ;    2       ==
  72. ;    1       <>
  73. ;    1       >
  74. ;    3       !
  75. ;    1       Upper()
  76. ;    1       Left()
  77. ;    1       Asc()
  78. ;    1       U_Name()
  79. ;    1       Replace()
  80. ;    1       Mask_Ascii()
  81. ;    5       PPEPath()
  82. ;    3       ReadLine()
  83. ;    1       GetToken()
  84. ;    1       TokCount()
  85. ;
  86. ;------------------------------------------------------------------------------
  87. ;
  88. ; Analysis flags : SC
  89. ;
  90. ; S - Shell to DOS ■ 5
  91. ;     This may be normal if the PPE need to execute an external command,
  92. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  93. ;     or usefull (sorting, maintenance,...). Check!
  94. ;     ■ Search for : SHELL
  95. ;
  96. ; C - Call child PPE ■ 3
  97. ;     This is usually normal, but may be a tricky way to launch some
  98. ;     sysop-only commands.
  99. ;     ■ Search for : CALL
  100. ;
  101. ;------------------------------------------------------------------------------
  102. ;
  103. ; Postprocessing report
  104. ;
  105. ;    0       For/Next
  106. ;    1       While/EndWhile
  107. ;    2       If/Then or If/Then/Else
  108. ;    0       Select Case
  109. ;
  110. ;------------------------------------------------------------------------------
  111. ;                 AEGiS Corp - Break the routines, code against the machines!
  112. ;------------------------------------------------------------------------------
  113.