home *** CD-ROM | disk | FTP | other *** search
- TITLE "Upload ONE (1) file to WC! v3.5"
- ;
- ; Author : Richard Campbell
- ; Written : 5-16-92
- ; Version : 1.1
- ; Revised : 5-18-92
- ;
- PARAMETER 1 "Enter file name (less .ZIP extension)"
- PARAMETER 2 "Enter file description"
- ENDPARAMS
-
- WHEN "-PAUSE-" SEND "|"
- WHEN "CONTINUE" SEND "|"
-
- ; Make sure we are at the file menu.
- VENUE FILE
-
- ; Open capture file. optional: [OVERWRITE/APPEND]
- CAPTURE "1FILEUP.CAP" APPEND
- MESSAGE "Capturing file upload script"
-
- SEND "U|"
- ; Parameter used for file name.
- SEND "%P1%.ZIP|"
-
- TIMEOUT 10
- WHEN "already exists" GOTO ERROR
- WHEN "password protect" SEND "|"
-
- ; Parameter used for file description
- WHEN "Description?" SEND "%P2%|"
-
- WHEN "detailed description" SEND "|"
- WHEN "file #2" SEND "|"
- WHEN "[A]bort upload," SEND "C|"
-
- WAITFOR "upload now." FAILURE GOTO GOODBYE
- UPLOAD "C:\ROBO\GET\%P1%.ZIP" USING ZMODEM
-
- :GOODBYE
- WHEN "-PAUSE-" SEND "|"
- WHEN "CONTINUE" SEND "|"
- WHEN "[ENTER]" SEND "|"
-
- ; Find our way back to the file menu.
- VENUE FILE
-
- ; Close the capture file.
- CLOSE
-
- EXIT 0
-
- :ERROR
- ; Send error message to log
- MESSAGE "Sorry, this file is a duplicate"
-
- ; Clear all the watches
- CLEAR
-
- WHEN "file #1" SEND "|"
- WAITFOR "[A]bort upload," FAILURE GOTO GOODBYE
- SEND "A|"
-
- ; Go back to File Menu prompt
- VENUE FILE
-
- ; Close the capture file.
- CLOSE
- EXIT 1
-
- ;end of file
-