home *** CD-ROM | disk | FTP | other *** search
- // Version 3.03 BackGround File Transfer
- // BGFTUXTL.SLT: Telix script for BGFT Xmodem-CRC upload.
- // Copyright (c) 1990-1994 Dirac Systems
- // Telix is a trademark of Exis Inc.
-
- str command[80]; // Command string for BGFTOPT.
- str temp[80]; // Temporary concatenation string.
- int updirlen; // Telix upload drive:directory str length.
- int extfilelen; // Telix external file maximum str length.
-
- main()
- {
- command = "/q"; // Start command line.
- strcat(command," /a"); // Acknowledge any error.
- strcat(command," /r");
- itos(get_port(),temp); // Find out where we are connected.
- strcat(command,temp); // Reconnect existing comm port.
- strcat(command," /b");
- itos(get_baud(),temp); // Find out what is the baud rate.
- strcat(command,temp); // Set baud rate for resident.
- //
- // BGFT requires a filename from Telix.
- //
- strcat(command," /u"); // Set up upload.
- updirlen = strlen(_up_dir); // Get unwanted Telix upld directory.
- extfilelen = strmaxlen(_ext_filespec); // Get maximum length of Telix file.
- substr(_ext_filespec,updirlen,extfilelen,temp); // Shave off upld dir.
- strcat(command,temp); // Put BGFT filename in '/u' command.
- //
- // Xmodem-CRC Upload
- //
- strcat(command," /~1"); // This protocol is Xmodem-CRC.
- strcat(command," /s"); // Start to send file.
- prints(command); // Tell user the command string.
- run("bgftopt.exe",command,2);
- exittelix(0,0); // Leave Telix; don't hangup line.
- } // Now enjoy background Xmodem-CRC upld.
-