home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / MISC / XDOC_117.ZIP / SAMPLES.ZIP / MSGUL.BAT < prev    next >
Encoding:
DOS Batch File  |  1989-12-02  |  745 b   |  23 lines

  1. Echo off
  2. REM This is the batch file XBBS spawns to allow a user to upload a text
  3. REM file.  XBBS passes the following parameters, in order:
  4. REM Baud, Comport # (COM1-style), Comport # (FOSSIL-style), Time, and
  5. REM Filename.
  6. REM It is then up to your batch file to invoke an XModem download from
  7. REM the user of Filename.  This example uses DSZ (an old version) and
  8. REM is only useful for files named MSGTMP<nodenumber>.  You can do some
  9. REM work on it to make it more generic if you need it.
  10. REM
  11. if "%6"=="1" goto SkipNode
  12. DSZ port %2 D restrict rx TMPMSG%6
  13. LineEd %1 %4 %3 23 0 0 80
  14. REN TMPMSG%6 MSGTMP%6
  15. goto SkipIt
  16. :SkipNode
  17. DSZ port %2 D restrict rx TMPMSG
  18. LineEd %1 %4 %3 23 0 0 80
  19. REN TMPMSG MSGTMP
  20. :SkipIt
  21. :END
  22. Exit
  23.