home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- if %1. == . goto help
- goto continue
- :help
- echo To use this batch file to send ASCII messages to a remote fax
- echo location, from the DOS prompt, type "SEND filename.txt phonenumber"
- echo Example: SEND HELLO.TXT 555-1212
- echo .
- echo If you have not yet selected the com port, etc., modify BGFAX.CNF
- goto end
- rem
- :continue
- SET BGFAX=C:\BGFAX
- rem
- rem change the above variable to the path of BGFAX program and CNF file
- rem
- MAKEFAX %1 OUTPUT.FAX /80
- rem
- rem The /80 on Makefax uses 80-column line width, /132 is also available
- rem If neither /80 or /132 are present, it assumes a 100 column width
- rem
- BGFAX /SEND:9600 OUTPUT.FAX %2 %3 %4 %5 %6 %7 %8 %9
- rem
- rem Change "BGFAX" to "BGFAX32" above if you want to use Win32 version!
- rem
- rem If BGFAX is SUCCESSFUL, it will exit with errorlevel 5
- :end
-