home *** CD-ROM | disk | FTP | other *** search
-
- FLASHDL3.PRG
-
- Flash Auto-Batch Download DO File Generator
-
- Version 3.0
- By Jinfu Chen
- November 1987
-
-
- I. What is this program for and who should use it?
-
- FLASHDL is a program to allow you create a DO file to download
- several files from either GEnie or CompuServe automatically without human
- intervention. Obviously you must own a copy of Flash!, the utimate
- tele-communication program for the Atari ST.
-
- You might say "Hey, all my friends are using Interlink, who cares
- Flash anyway!". Yes, Interlink is very easy to use for inexperienced users,
- but at least one thing it cannot do: to download serveral files from a
- commercial service like GEnie or CompuServe automatically. The 'record'
- function only let you do what you have done already.
-
- Enough for bad-mouthing Interlink. Let me explain a little more on
- what this program can do and cannot do. For those who use FLASHDL2.PRG
- before you can skip the next couple paragraphes.
-
- It is a very common that you browse through GEnie or CIS several
- times a week and find out there are some files you want to download. The
- simple way is to sit down in front of the computer and download one by one,
- and probably watch that silly "nnn Blocks" status line for the whole
- night. You may say "I really should learn something about the DO file and
- create one to free myself from this!". Well, even you are an expert of DO
- file, you still have to edit a DO file everytime which is what I did
- before and I really did not like it.
-
- Now how about a program that will just prompt you to enter
- filenames which you want to download and create the DO file for you? This is
- exactly what my program for. All you have to know is a list of filenames
- in one of the service (in case of GEnie, file number is preferred). The best
- way is to write down the filenames/numbers in a piece of paper and then
- just double click FLASHDL3.PRG. The program will prompt you to enter file
- names/numbers. Once it is done go back to Flash and hold down the Alternate key
- and key 'A', select the DO file you just create and go to do whatever you want.
- The DO file will call the service, download all the files you want and log off
- by itself. Or you can run the DO file before going to bed and the files will be
- ready when you wake up next day.
-
- II. How to use the program?
-
- Double click FLASHDL3.PRG and walk through the menu.
-
- III. Is that all?
-
- Yes, I believe the program is simple enough to be used and there
- is even a HELP menu. However, several things need to be explained here in
- order to use all the features of the program.
-
- 1) FLASHDL.DEF file.
- This is a file contains some data so that you do not want to enter
- everytime when you use the program. Such as the telephone number of the
- GEnie or CompuServe, your user ids and passwords, and some customized
- initialization data(explained later). When you first time run the program,
- the program will create this file for you if you just click the OK button.
- All the information entered will be saved when you select the 'QUIT' item
- from menu.
-
- Since this file contains some vital information(user id and
- password), you are responsible to protect your account by not showing this
- file to anyone else.
-
- 2) Initialization data.
- Once you have created the FLASHDL.DEF file, you can use a
- word/text editor(FLASH's capture buffer is an excellent one) to examine
- the file. The first line is the version number which you should not change.
- The second line will look like this:
-
- >BA 1200|>ST ON|>TR OFF|>SB 1|>PY NONE|>XM 8 C R|>MO AT|>CA ON|
-
- This line will be appeared at the first line of the DO file you
- create. It is for initializing some parameters before calling GEnie or CIS.
- In case you do not remember what they mean, here is the explainations:
-
- Baud rate : 1200
- Strip bit : On
- Stop bit : 1
- Parity : None
- Translation : Off
- Xmodem : 8 bit, CRC, 128 block
- Monitor : Atari (VT52)
- Capture : On
-
- Now you might want to change some of these parameters, for example
- the baud rate if you are in the fast lane. It is easy, just change what ever
- you like or add any legal FLASH commands to this line, and save the
- FLASHDL.DEF file. Next time the program will read this line and append it
- the DO file.
-
- In case of using CompuServe, the program will add a command to
- switch terminal type to Vidtex(tm) mode so no need to change the terminal
- type in the initialization.
-
-
- 3) Error trapping.
-
- The third line in the FLASHDL.DEF file is for those who have newer
- version of Flash(the latest at this writting is 1.5). Initially it will
- look like this:
-
- >L: ERROR|>HG|>B2|>AL "[3][ Service timeout | Fatal error ][ OK ]"|
-
- It is used for error trapping when something goes wrong during the
- download session, such as non-existed file(wrong name or file being
- removed), or incorrect response from the service. You can change anything in
- this line except the first 10 charaters( >L: ERROR| ) since the label
- command is needed for the DO file.
-
- To understand what this line for and how you can modify it, we
- need to explain how a DO file generated by this program works.
-
- Basically, the DO file is a script of commands and some text to be
- sent to the modem. It is heavilly depends on what responses the service
- sends to your terminal. Any garbled characters from the service or wrong
- response will cause Flash not execute next command in the DO file. In the
- older version of Flash(pre-1.5), this will cause Flash waits forever until
- YOU hit the undo key to abort the session.
-
- In Flash version 1.5 and later, the 'wait' command has a timeout
- option so that if something goes wrong the DO file can jump to somewhere
- else. In our case, it will jump to the last line of the DO file which is the
- same as the one in FLASHDL.DEF. The way I handle error is to use the command
- >HG|(hangup). However, it may not work for all the modems as the command
- HANGUP toggles the Data-Terminal-Ready(DTR) line -- RS232C pin 20. There
- are several reasons your modem may not work with this command: the modem
- cable does not connect pin 20, your modem does not support DTR toggle
- mode(there is no such thing as 100% compatible!), or the DIP
- switch/S-register is set to ignor DTR the line(most common setup).
-
- To determine if the HG command works in your modem, hit the INSERT
- key to enter the command mode in Flash and type HG <CR>(return) and see if
- the TR light(if you have one!) on the modem change or not( it may be just a
- flash), or call up a local BBS and wait until connection is made, then enter
- the command to see if you can hangup the modem(no hate-mail from sysops
- please).
-
- Chances are most of the modems support this command but you may
- not be in the right setting. Check the modem manual for further
- information.
-
- If you can not find a way to use the HANGUP command, you can
- either change the command to the +++ escape sequence and send a ATH to the
- modem to disconnect. It will look like this:
-
- >L: ERROR|+|>PA 1|+|>PA 1|+|>WA OK|ATH|>B2|>AL...
-
- or just the B2 command(ring the bell continousely) to get your
- attention. The AL command just put an alert box on screen(see the DOC file
- in 1.5).
-
-
- IV. Some most asked questions or questions you may ask:
-
- 1. The DO file did work and it just hung in waiting the U#=
- prompt(GEnie login prompt), is anything wrong with the program?
-
- A: Nope, I use the program all the time and so do some other people.
- It could be a bad connection or something wrong with GEnie(it dropped me
- several times during a conference or download) or your local telephone
- company. Just abort the DO file and try it again. With Flash 1.5 or later,
- the DO file will hangup for you(see above).
-
- 2. When I use the DO file to download some files, one of them was
- removed and the program hungup in the middle, your program does not work!
-
- A: Yes, but that is not my fault. Remember a DO file is a sequence of
- wait-something-and-do-something. If the service does not response precisely
- what we want, there is no way the DO file will think for you. A computer is
- a really dumb kid when thinking is involved. Again, in version 1.5 this is
- handled much better.
-
- 3. The DO file aborted even nothing goes wrong and I get the timeout
- alert box(in this version), what is wrong with it?
-
- A: The timeout value I use is 90 seconds for each prompt which I think
- long enough for any reasonable connection. If you can not get a response
- from the service within a minute, chances are the service is in very heavy
- loading condition and not good for downloading! Just try in other less used
- time such as early morning in conjunction with the WTIME command.
-
- 4. The download was bombed because disk is full.
-
- A: It is your responsibility to estimate how many files you can stuff
- into one disk when creating a DO file. Try to make a download session no
- more than twenty files. In this version the program will force you stop
- when more than fourty filenames are entered. When you enter the filenames
- there is a total file counts in the dialog box to remind you.
-
- 5. Where are the files will be stored when using your program?
-
- A: The default directory set by Flash. Usually it is the same as the
- one the program Flash resides. You can change this to anywhere before
- running the DO file(highly recommanded).
-
- 6. Can I use the program to create a DO file to download files from the
- MichTron RoundTable at GEnie or the Atari Developer SIG at CompuServe?
-
- A: Yes, but you will need to make some change. First create the DO file as
- what you would do usually, then use a text editor to edit the DO file. In case
- of the MichTron Roundtable at GEnie, change the number 476 right after your
- password to 491. In case of the Atari Developer SIG, change the string "go
- atari16" to "go ataridev".
-
- This ends the lengthy doc file. I am working on an accessory version of
- the program but it is in low priority now, unless there are popular requests.
- If you have any question or request, send me an E-Mail to either CompuServe
- or GEnie:
-
- CompuServe: 72327,2434
- GEnie: J.CHEN
- USENET: Jinfu_Jinfu_Chen@cup.portal.com
-
-
-
-