home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / bbs / aview65b.zip / VIEWCOMP.BAT < prev    next >
DOS Batch File  |  1993-10-02  |  3KB  |  73 lines

  1. @echo off
  2. rem
  3. rem  These are the command line parameters for AViewCom included here for
  4. rem  your convenience.  You may delete the remark lines if you wish.
  5. rem
  6. rem AViewCom archive [port] [options]
  7. rem   archive  = file to view, or '*' to search
  8. rem   port     = 'com#' or 'local' where # = 0 to 22 and 0 = local
  9. rem options:
  10. rem   -a#      = ansi: 0 = mono, 1 = ansi, 2 = prompt user
  11. rem   -b#      = com port base address in hex
  12. rem   -c       = read options from configuration file
  13. rem   -d       = do not allow downloading
  14. rem   -e#      = extractor:  0-pkxarc,  1-pkunpak, 2-pak,  3-arc,
  15. rem                          4-pkunzip, 5-zoo,     6-lha   7-arj 
  16. rem   -i#      = com port irq number
  17. rem   -l       = enable activity logging
  18. rem   -n#      = limit temporary archive size to # kbytes
  19. rem   -o#      = current node number where # is 0 to 999
  20. rem   -p{tpath}= tpath = d:pathname of temporary directory to extract files to
  21. rem   -q       = disable DesqView compability patch
  22. rem   -r#      = baud rate for file transfer calculations
  23. rem   -s{pwd}  = pwd = password required to shell to DOS
  24. rem   -t#      = maximum number of minutes allowed in AViewCom
  25. rem   -u       = update USERINFO.DAT to reflect downloads
  26. rem   -v       = disable direct screen writes
  27. rem   -w       = read user information from DOOR.SYS
  28. rem   -x       = operate in Read (ASCII) Text mode instead of View Archive
  29. rem   -z       = compensate for WildCat v3.02 reading user downloads
  30. rem Options order is not important, but archive must come first
  31. rem
  32. rem  Note:  If you are running the shareware version, it will not read
  33. rem  the port information from DOOR.SYS and therefore will not know if
  34. rem  the caller is logging on locally.  To test AViewCom in the local
  35. rem  mode, you will have to temporarily replace the COM parameter with LOCAL.
  36. rem
  37.  
  38. rem
  39. rem  Check if the WCNODEID environment variable is set.
  40. rem
  41. if "x%WCNODEID%" == "x" goto SingleNode
  42.  
  43. rem
  44. rem  This is a multinode system, so we must CD to the node subdirectory
  45. rem  If you are running a multi-node system, this directory is where the
  46. rem  DOOR.SYS file is located for the current caller.  Also, a copy of the
  47. rem  VIEWCOMP.BAT is copied to this directory from the main directory by
  48. rem  wildcat.
  49. rem
  50. :MultiNode
  51. cd \wc30\wcwork\node%WCNODEID%
  52. if "x%WCPORTID%" == "x" goto NoPort
  53.  
  54. rem
  55. rem  The rest of this SAMPLE batch file assumes you have installed AViewCom 
  56. rem  in a directory called \WC30\AVIEWCOM\ so please change it as necessary.
  57. rem
  58.  
  59. rem
  60. rem  This calls aviewcom.  This is the same for single and multinode systems.
  61. rem
  62. :SingleNode
  63. \wc30\aviewcom\aviewcom %1 com%WCPORTID% -w
  64. goto end
  65.  
  66. rem
  67. rem  This is called if the WCPORTID is not set.  This will use COM1.
  68. rem
  69. :NoPort
  70. \wc30\aviewcom\aviewcom %1 com1 -w
  71.  
  72. :end
  73.