home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / email / dove0793.zip / CUNBATCH.DOC < prev    next >
Text File  |  1992-05-11  |  4KB  |  68 lines

  1. Documentation for CUNBATCH.EXE
  2.  
  3. Many users of DoveMail will NOT need this program at all.  You need it only
  4. if your feed is sending you compressed batched newsgroups that begin with the
  5. 12 characters "#! cunbatch<LF>" (where <LF> is a linefeed character).  Since
  6. MS-DOS versions of COMPRESS aren't smart enough to ignore this header when
  7. decompressing a file, they think the file isn't really a compressed file and
  8. refuse to uncompress it.  All that CUNBATCH does is to strip off the "#!
  9. cunbatch<LF>" header from every file conforming to the filespec you specify
  10. in the command line, assumimg that the file actually contains the header.
  11. You can also reverse the process and ADD a header to files that don't already
  12. have one, though I imagine that VERY few people will have a need to do that.
  13. In either case, CUNBATCH.EXE checks first to see if the file already has the
  14. header and acts appropriately (it won't add a header to a file that already
  15. has one, and it won't delete anything from a file that does not have the
  16. header.
  17.  
  18. New feature:  You can optionally shell to COMPRESS from within CUNBATCH, in
  19. order to force COMPRESS to deal with batched newsgroup files one at a time
  20. (note, however, that this requires additional memory, so if you are
  21. multitasking in a tight memory situation you may need to run CUNBATCH first
  22. and then run COMPRESS separately).
  23.  
  24. There are only three possible file line switches, one of which is required
  25. and two of which are not.  The usage is:
  26.  
  27. Cunbatch -f[drive:][path]FILEMASK [-a] [-c[drive:\path]COMPRESS.EXE[_switches]]
  28.  
  29. Specify the filemask (wildcards may be used) and optionally the drive and/or
  30. pathspecs after the -f switch.
  31.  
  32. Use the optional -a switch to ADD "#! cunbatch" header to files that do not
  33. already have it (the default is to REMOVE the header from files that DO have
  34. it).
  35.  
  36. Use the optional -c switch to shell to a compression program after adding or
  37. removing the header from each file.  This will force processing of files in
  38. datestamp order.  Use the underscore characters to replace spaces in the
  39. compressor invocation line - for example, a typical invocation line would be:
  40.  
  41.      CUNBATCH -fINFILE.DZ -cC:\UTIL\COMPRESS.EXE_-dfv
  42.  
  43. The -c switch allows you to shell to an external program (such as COMPRESS)
  44. only *AFTER* the "c" header is removed (or added), and it is only usable
  45. where the the name of the file to be acted upon is the last item in the
  46. called program's invocation line.  It is intended specifically for calling
  47. the COMPRESS program while unpacking compressed newsgroup files, and may not
  48. be too useful in other situations.  Also, you MUST include the FULL DRIVE and
  49. PATH specifications (if not in the "current" directory) and EXTENSION (e.g.
  50. ".EXE") of the compression program called using the -c switch.  If -c switch
  51. is not used, Cunbatch will not attempt to shell to the compression program.
  52.  
  53. Cunbatch needs as much free space on the hard drive as is used by the
  54. original file (plus 12 bytes if you're adding a header).  It will check to
  55. see if this much free space is available and will skip any files that are too
  56. large to process.  Compress then won't uncompress them and DoveMail will
  57. ignore them, so you can recover from this error later.
  58.  
  59. Possible error codes that may be returned are:
  60.  
  61. 0 - No errors
  62. 1 - Bad path given on command line
  63. 2 - Unexpected error (some files may have been processed)
  64. 3 - Error in calling compressor program (some files may have been processed)
  65. 4 (or higher) indicates that processing failed on one or more files due to
  66. lack of disk space.  6 indicates both a lack of disk space and some other
  67. error.  In either case, some files may have been processed already.
  68.