home *** CD-ROM | disk | FTP | other *** search
- trace(1)
-
- {BBSGET.ACT}
-
- { This Action file initiates the receipt of data from a BBS. It checks }
- { if a filename argument is given, and prompts if not. }
-
- @a = @1 {argument 1 move to variable @A}
- if (@1 <> "") goto :noprompt {if argument is null go to noprompt}
- @a = prompt("Enter receive filename: "); {ask for file name}
- if (@a = "") exit; {no file name, exit}
- @b = prompt("Enter X for Xmodem, A for Ascii: "); {ask file xmodem or ASC}
- if (@b <> "x" and @b <> "a") exit "Don't understand ""@b"""; {check}
-
- :noprompt {no prompt}
- {******************************************}
- {ask the host to download}
- "d;@a"; @return;
- cwait("?"); @b; @return;
-
- {ASCII file transfer}
- if (@b = "x") goto :xmodem
- cwait("?");
- @return;
- recvfile(@a, "ascii", "$07$0D");
- exit;
-
- :xmodem
- cwait("...");
- recvfile(@a, "xmodem");