home *** CD-ROM | disk | FTP | other *** search
/ Dr. CD ROM (Annual Premium Edition) / premium.zip / premium / COMM_MIS / PCPEXEC5.ZIP / READ.005 < prev   
Text File  |  1993-10-09  |  10KB  |  314 lines

  1.  
  2. LOGEXEC4.ZIP
  3. Wolfram Video October 09, 1993
  4.  
  5.  
  6. What's new?
  7. ___________
  8.  
  9. The Exec-PC "log-on" menu changed recently and requires a new script.
  10. Several changes have been made to the EXEC-PC.ASP file to accommodate these
  11. changes.  This version will also turn off the monitor display during the time
  12. that the BBS echos your password.  This feature, when combined with the
  13. compiled *.ASX file will keep your password confidential from other users of
  14. your pc as well as nearby observers while logging on.  To assure confidentiality, delete your password from the original *.ASP file, put it
  15. a safe place for future use, delete the backup and compress your drive.
  16. ____________________________________________________________________________
  17.  
  18.  
  19.  
  20. 1.) Installation:
  21. -----------------
  22.  
  23.  
  24. Included are:        READ.005         <-This file
  25.                      EXEC.BAT         <-Auto-Log-On batch file.
  26.                     AUTOE.ASP         <-PC+2.1 Auto dialing program.
  27.                   EXEC-PC.ASP         <-PC+2.1 Aspect file.
  28.  
  29. This set of files will log you on to Exec-Pc from your PCs DOS
  30. prompt.  The three (3) files will load your Procomm Plus 2.1 program,
  31. dial Exec-Pc, log on under your first and last name with password and,
  32. create a date/time-named log file and place it in the sub-directory of your choice.  The program exits when you are at the top of Exec-Pc's main menu.
  33.  
  34. The following actions will take place when using these files:
  35.  
  36.  1. Entering: "EXEC" at your DOS prompt runs [EXEC.BAT].
  37.  2. [EXEC.BAT] runs Procomm Plus 2.1 and loads the [AUTOE.ASP] file.
  38.  3. [AUTOE.ASP] will find your [PCPLUS.DIR] dialing directory and load
  39.     and run the [EXEC-PC.ASP] file.
  40.  4. [EXEC-PC.ASP] dials Exec-Pc and performs all log-on functions
  41.  
  42.  
  43.  
  44. 2.) Getting Started!
  45. --------------------
  46.  
  47.  
  48. You must modify the three (3) included files for your configuration.
  49. Thes files will NOT run without these changes.
  50.  
  51. For the Procomm Plus 2.1 auto-log files to operate properly you need to make the following changes in EACH file.
  52.  
  53. -----------------------------------------------------------------------------
  54. File #1 [EXEC.BAT]
  55.  
  56.  
  57. Make the following changes, then place this file into your "BATCH" directory
  58. or into a directory that is found in your "PATH" statement.
  59.  
  60. ECHO OFF           <-Turns echo off (May be deleted)
  61. CLS                <-Clears screen (May be deleted)
  62. CD\PCPLUS          <-Procomm Plus directory name.
  63. PCPLUS/FAUTOE.ASP  <-Runs Procomm Plus with [AUTOE.ASP](Need "F" in "FAUTOE")
  64. C:                 <-Return to your DOS prompt (May be deleted)
  65.  
  66. -----------------------------------------------------------------------------
  67. File #2. [AUTOE.ASP]
  68.  
  69. Make the following changes, then place this file into your
  70. "PCPLUS" directory.
  71.  
  72. proc main
  73. DLOAD "PCPLUS"              <-Name of "YOUR" Procomm Plus dialing directory
  74. EXECUTE "EXEC-PC"           <-Name of "Exec-Pc" script file in dialing dir.
  75. endproc
  76.  
  77. -----------------------------------------------------------------------------
  78. File #3 [EXEC-PC.ASP]  ---- "The Big One " -------
  79.  
  80. Make the following changes, then place this file into your
  81. "PCPLUS" directory.
  82.  
  83. ;Make changes as indicated by  "CHANGE" !
  84.  
  85. proc main
  86. ASSIGN S0 "1"                <- "CHANGE" Dialing directory entry for EXEC-PC
  87. ASSIGN S1 "GEORGE"           <- "CHANGE" first name
  88. ASSIGN S2 "WASHINGTON"       <- "CHANGE" Last name
  89. ASSIGN S3 "PRESIDENT"        <- "CHANGE" Your password
  90. ASSIGN S4 "C:\PCPLUS\LOG\"   <- "CHANGE" Drive:\path\  where to create
  91.                                           YOUR: * .LOG file.
  92.  
  93. ;*** IF NOT LINKED
  94. if not fromddir
  95.    DIAL S0                 ; Dial EXEC-PC
  96. ENDIF
  97.  
  98. EMULATE ANSI
  99.  
  100. EMULATE ANSI
  101.  
  102. GOSUB LOG_ON                ; Get logged on (hopefully)
  103.                             ; Note: doesn't wait for main menu.
  104.  
  105. GOSUB OPEN_LOG              ; Open the log (capture buffer)
  106.  
  107. WAITFOR " ?=HELP) -> " 300  ; Make sure we are at the top menu
  108. PAUSE 1
  109.  
  110. EXIT
  111.  
  112.  
  113. endproc
  114.  
  115. ;*** LOG_ON:                     ; Log onto EXEC-PC
  116. proc LOG_ON
  117.  
  118. SEND_CR:
  119.   TRANSMIT "^M"
  120.   WAITFOR "name -> " 40
  121.   IF NOT WAITFOR
  122.      GOTO SEND_CR
  123.   ENDIF
  124.  
  125. PAUSE 1
  126. TRANSMIT S1         ; Send first name
  127. TRANSMIT ";"
  128. TRANSMIT S2         ; Send last name
  129. TRANSMIT ";"
  130. TRANSMIT S3         ; Send password
  131. TRANSMIT ";"
  132. TRANSMIT "Q"        ; Bypass bulletin menus
  133. proc LOG_ON
  134.  
  135. SEND_CR:
  136.   TRANSMIT "^M"
  137.   WAITFOR "FIRST" 4
  138.   IF NOT WAITFOR
  139.      GOTO SEND_CR
  140.   ENDIF
  141.  
  142. PAUSE 1
  143. TRANSMIT S1         ; Send first name
  144. TRANSMIT ";"
  145. TRANSMIT S2         ; Send last name
  146. TRANSMIT ";"
  147. TRANSMIT S3         ; Send password
  148. TRANSMIT ";"
  149. TRANSMIT "Q"        ; Bypass bulletin menus
  150. TRANSMIT "^M"
  151.  
  152. RETURN
  153.  
  154. endproc
  155.  
  156. ;*** OPEN_LOG:
  157. proc OPEN_LOG
  158.  
  159. LOG CLOSE             ; Take no chances--close the log in case it is open.
  160.  
  161. DATE S9               ; get date in MM/DD/YY format
  162. TIME S8 1             ; Get time in HH:MM:SS 24-hour format
  163.  
  164. SUBSTR S0 S8 0 2      ; Copy hour to S0
  165. SUBSTR S1 S8 3 1      ; Copy tens of minutes to S1
  166. STRCAT S0 S1          ; Convert to HHT (Hours & tens of minutes)
  167. ATOI   S0 N5          ; Convert HHT to an integer
  168.  
  169. SUBSTR S0 S9 6 2              ; Get year
  170. SUBSTR S1 S9 0 2              ; Get month
  171. STRCAT S0 S1                  ; S0 now has yymm
  172. SUBSTR S1 S9 3 2              ; get day
  173. STRCAT S0 S1                  ; S0 now has yymmdd
  174.  
  175. LOG_LOOP:
  176.    STRFMT S5 "%sNA%s.%03d" S4 S0 N5  <- "CHANGE" ( NA ) to abbreviate
  177.                                      ; your name in case you have
  178.                                      ; several Exec-Pc subscriptions or other
  179.                                      ; people on who create their own file.
  180.  
  181.    ISFILE S5                      ; Check to see if this file already exists
  182.    IF SUCCESS                     ; I.e., if file already exists
  183.       STRFMT S1 "File %s already exists - will try next name." S5
  184.       MESSAGE S1
  185.       INC N5                  ; Increment counter
  186.       GOTO LOG_LOOP           ; And try again
  187.    ENDIF
  188. LOG OPEN S5                   ; Open a log file
  189. MESSAGE " "
  190. STRFMT S1 "Log %s D=%s,T=%s." S5 S9 S8
  191. MESSAGE S1
  192. MESSAGE " "
  193.  
  194. RETURN
  195.  
  196. endproc
  197.  
  198. ----------------------------------------------------------------------------
  199.  
  200.  
  201.  
  202. 4.) Placement of files.
  203. -----------------------
  204.  
  205.  
  206. EXEC.BAT                          <-Put in your "Batch" directory or path.
  207. AUTOE.ASP                         <-Put in the PCPLUS main directory.
  208. EXEC-PC.ASP                       <-Put in the PCPLUS main directory.
  209.  
  210.  
  211.  
  212. 5.) Procomm Plus 2.1 Dialing Directory "CHANGES".
  213. -------------------------------------------------
  214.  
  215.  
  216. Go into "YOUR" Procomm Plus 2.1 Dialing Directory and "Revise" your Exec-Pc 
  217. "SCRIPT" by typing: "EXEC-PC" (no quotes) in the Log-on script box.
  218.  
  219. When the [EXEC.BAT] is run for the "FIRST TIME", Procomm Plus 2.1 will
  220. "Compile" the [AUTOE.ASP]   file to an: [AUTOE.ASX]   file, and
  221. "Compile" the [EXEC-PC.ASP] file to an: [EXEC-PC.ASX] file.
  222.  
  223.  
  224.  
  225. 6.) Running the Program.
  226. ------------------------
  227.  
  228.  
  229. At your DOS prompt, enter: EXEC
  230.  
  231.  1. Entering: "EXEC" at your DOS prompt will automatically load [EXEC.BAT].
  232.  2. The [EXEC.BAT] will run Procomm Plus 2.1 and load the [AUTOE.ASP] file.
  233.  3. The [AUTOE.ASP] will find "YOUR" dialing directory and dial the entry.
  234.  4. The Procomm Plus 2.1 program will run the [EXEC-PC.ASP] file and log on.
  235.  5. Wait for Exec-Pc's main menu finish its log on procedure. You will see
  236.     the filename: [EXEC-PC.ASX] in the lower left half of your Procomm Plus
  237.     2.1 screen's Status Line. Once you have logged on completely, the file
  238.     name will be replaced with the default message:  Alt-Z: Help
  239.  
  240. The files run for me with 2 different subscriptions on Exec-Pc.
  241.  
  242.  
  243.   You'll find it neccessary to have seperate scripts for 2 or more
  244.   Exec-Pc Subscriptions, I and use:
  245.  
  246.   [3W.BAT], [AUTOW.ASP], [LOGOWOVI.ASP] for WOLFRAM VIDEO and
  247.   [3Z.BAT], [AUTOZ.ASP], [LOGOWOZI.ASP] for WOLF ZIMMERMANN
  248.  
  249.  Modify the parameters of:
  250.  [EXEC.BAT], [AUTOE.ASP], [EXEC-PC .ASP] 
  251.  to suit your own needs.
  252.  
  253.   (with the appropriate changes you can log on under any number of different
  254.   parameters. For more scrip information, read the Procomm Plus 2.1 "Aspect
  255.   Script Language" Reference manual supplied with the 2.1 upgrade.
  256.  
  257.  
  258.  
  259. 7.) Possible problems.
  260. ----------------------
  261.  
  262.  
  263. If "script" problems are encountered due to entry "errors" you may have made while making changes, Procomm Plus 2.1 will notify you with an
  264. on-screen message: "ERRORS ENCOUNTERED COMPILING AUTOE.ASX"
  265.                or: "ERRORS ENCOUNTERED COMPILING EXEC-PC.ASX."
  266.  
  267. If you notice the above messages,  The Procomm Plus "compiler" was unable to
  268. create the [*."ASX] files and instead created
  269. an:     [AUTOE.ERR] file
  270. and/or: [EXEC-PC.ERR] file.
  271.  
  272. Should this occur, read the contents of the [*.ERR] files and make the appropriate
  273. corrections/changes in the: [*.ASP] file. Thereafter  delete the current [*.ERR]
  274. file and repeat running [EXEC.BAT]
  275.  
  276. If the scrips:
  277.       [AUTOE.ASX]
  278. and [EXEC-PC.ASX] have been compiled the program will run smoothly
  279. thereafter.
  280.  
  281.  
  282.  
  283. 7). Maintainance.
  284. -----------------
  285.  
  286.  
  287. Do not delete the original:
  288.       [AUTOE.ASP]
  289. and [EXEC-PC.ASP] files.
  290.  
  291. You will want them should you wish to make changes in these two scrips files.
  292. If changes (such as replacing your "password" or "dialing entry position" are
  293. to be made later.  To make such a change in the [*.ASP] file, edit the file
  294. as desired, then DELETE the matching [*.ASX] file.  Upon running the auto-
  295. log, the [*.ASP] files will be "compiled" into "new" [*.ASX] files.
  296.  
  297.  
  298. =============================================================================
  299.  
  300.  
  301. That's it!
  302.  
  303. Dial-A-Happy!
  304.  
  305. Wolf Zimmermann
  306.  
  307.  
  308.  ╒══════════════════════════════════════════════════════════════════════╕
  309.  │ ╒══[ WOLFRAM VIDEO(r),  The "HotVideo"(tm)  Music Video Service ]══╕ │
  310.  │ │                                                                  │ │
  311.  │ ╘═════[ c 1993 Wolfram Video,Inc. West Allis, Wisconsin, USA ]═════╛ │
  312.  ╘══════════════════════════════════════════════════════════════════════╛
  313.  
  314.