home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / comm / zipfs162.zip / ZIP.DOC < prev    next >
Text File  |  1993-03-09  |  48KB  |  938 lines

  1.  
  2.                                    ZIP.DOC
  3.                                    -------
  4.               Instructions for ZIP - Fast File Transfer Utility
  5.                           version 1.62 (08 Mar 1993)
  6.  
  7.                              (c)1988-93 E. Meyer
  8.  
  9.  
  10.         Requires:  two IBM PC compatible computers with DOS 2.x or above;
  11.                    appropriate (serial null modem) RS232C cable.
  12.  
  13.  
  14. ================================== CONTENTS ==================================
  15.  
  16.      1. ABOUT ZIP: Brief description; Copyright and Licensing
  17.  
  18.      2. PREPARING TO USE ZIP
  19.           A. Setting the serial port and speed
  20.           B. Menu vs Command-line mode
  21.  
  22.      3. TRANSFERRING FILES
  23.           A. Sending files
  24.           B. Receiving files
  25.           C. Selecting files from a group
  26.           D. Backups and overwriting files
  27.           E. Directory, Delete, and Log commands
  28.  
  29.      4. SERVER MODE
  30.           A. Sending and fetching files
  31.           B. Server Directory, Delete, and Log commands
  32.           C. Comparing directory contents
  33.  
  34.      5. FURTHER USAGE NOTES
  35.           A. Examples of command-line syntax
  36.           B. Automating use of ZIP (@files, Redirection, Batch files)
  37.  
  38.      6. UTILITY PROGRAMS
  39.           A. Cloning ZIP with ZIPDUP
  40.           B. Changing defaults with ZIPCFG
  41.  
  42.      7. TECHNICAL INFORMATION
  43.           A. General information
  44.           B. Using ZIP on the HP95LX palmtop
  45.           C. Appropriate serial cables
  46.           D. Error messages
  47.           E. Version history and notes
  48.           F. About the program and author
  49.  
  50.  
  51. ================================ 1. ABOUT ZIP ================================
  52.  
  53.  
  54.      Anyone with two computers probably needs to transfer programs or data 
  55. between them regularly... yet if large amounts of data are involved, 
  56. exchanging floppy disks quickly grows tedious; and if the disk drives are 
  57. incompatible, or a portable computer has none, it won't work at all.  Keeping 
  58. track of new or modified files on each computer gets to be a problem, too.
  59.  
  60.      ZIP is a tiny, fast utility to transfer files between two IBM compatible 
  61. computers; it requires no expensive additional hardware, just a simple serial 
  62. cable.  It can be used from the DOS command line or a batch file, or run from 
  63. an interactive menu.  It transfers files as simply as using the COPY command, 
  64. and has options that make it easy to reconcile directories on both computers.  
  65. Ideal for laptop or palmtop computers, it takes just 12k of disk space, and 
  66. occupies no memory when not in use.
  67.  
  68.      There are good retail programs for this purpose, though they typically 
  69. cost over $100; if you're willing to buy or make your own cable, you can do 
  70. the same job with ZIP instead.  ZIP doesn't have all the features of the fancy 
  71. programs, but it doesn't consume precious system memory either; it just 
  72. transfers files when you need to, as simply as using the COPY command.  In 
  73. fact, even if you have other more complex programs, you may still find ZIP 
  74. easier to use much of the time because of its small size and simplicity.
  75.  
  76.      ZIP is as fast as a serial (RS232) transfer program can be, and faster 
  77. than some free/shareware programs that also claim to operate "at 115200 bps".  
  78. ZIP can transfer data 6 times faster than an ordinary telecom program over a 
  79. serial cable... 48 times faster than typical modem transfer rates.
  80.             Telecom programs: modem       2400 bps            0.3 K/sec
  81.                               cable      19200 bps            2.3 K/sec
  82.                          ZIP: cable     115200 bps     up to 14.1 K/sec!
  83. On older PCs and slower portables, ZIP will come as close to this throughput 
  84. as your computers allow.  (Between an 8MHz XT and 4.77MHz laptop, it reaches 
  85. about 10K/sec.)  Of course, disk access also takes time; with any system, 
  86. large amounts of data can be sent more quickly using RAMdisks or hard disks, 
  87. rather than slow floppy disk drives.  Although ZIP is designed to operate at 
  88. very high transmission speeds, it can also be used at slower speeds in 
  89. applications that demand this.
  90.      (Note: ZIP does not employ data compression, and has nothing to do with 
  91. the new file compression program PKZIP by Phil Katz.)
  92.  
  93.  
  94.                          HOW YOU GOT YOUR COPY OF ZIP
  95.  
  96.      ZIP circulates widely as "shareware", giving you the opportunity to try 
  97. the program at no cost, and to share it with others -- hence the name.  If it 
  98. doesn't meet your needs, you don't have to pay for it.  If you find the 
  99. program valuable and continue to use it, you pay for it by "registering" your 
  100. copy.  In return, you get an update disk and support from the author.
  101.  
  102.      Shareware offers some unique advantages over retail software, because 
  103. users interact directly with the author.  Obviously, costs are kept down 
  104. because glossy packaging, advertising, and retail markups are eliminated.  But 
  105. shareware can also resist market trends and continue to provide useful kinds 
  106. of products that the big corporations have abandoned.  And shareware authors 
  107. can respond more directly to user requests and concerns than software 
  108. publishers that release an update only when it seems profitable.
  109.  
  110.      Shareware works when users give program authors useful feedback, and most 
  111. of all, when users support authors by registering their programs.  This makes 
  112. it possible for quality shareware to continue to develop and improve.  ZIP 
  113. would not have become what it is now without this kind of support.  Please 
  114. support shareware by registering any programs that you use.
  115.  
  116.      The use and distribution of ZIP are governed by the "COPYRIGHT AND 
  117. LICENSE" information below.  Please read this carefully!
  118.  
  119.  
  120.                             FILES YOU SHOULD HAVE
  121.  
  122.      Be sure you have all the files which should be included in this package:
  123.  
  124.               ZIP.DOC      - This documentation file.
  125.               ZIP.COM      - The file transfer program.
  126.               ZIPCFG.COM   - The configuration (customizing) utility.
  127.               ZIPDUP.COM   - The duplication (cloning) utility.
  128.               ORDER.FRM    - Registration/site license order form.
  129.  
  130.  
  131.  
  132.                       COPYRIGHT AND LICENSE INFORMATION
  133.  
  134.          The ZIP program and documentation are copyright (c)1988-93 
  135.          Eric Meyer, all rights reserved worldwide.  They may not be 
  136.          circulated in any incomplete or modified form, nor sold for 
  137.          profit, without written permission of the author.  The use 
  138.          or sale of ZIP is subject to the following terms:
  139.  
  140.  
  141. PERSONAL USE.  If you find ZIP valuable and continue to use it, you are 
  142.     encouraged (but not required) to register, and help support the 
  143.     development of high-quality, affordable software:
  144.                    INDIVIDUAL REGISTRATION .....  $30 (US)
  145.     Registered users receive several benefits:
  146.             * A copy of the latest version of ZIP (and other useful 
  147.          programs) on disk direct from the author.
  148.             * Support.  You can get help with any questions or 
  149.          problems you encounter in using ZIP.  Future upgrades can 
  150.          be ordered on disk when desired.
  151.             * Your registration verifies the legality of your 
  152.          personal use of ZIP at your workplace as well.
  153.  
  154.  
  155. SITE LICENSES.  Any company or institution wishing to use ZIP in the course of 
  156.     its business MUST purchase a SITE LICENSE.  The cost of the license is 
  157.     quite modest, and varies according to the number of computers on which ZIP 
  158.     may be in use in the workplace:
  159.                          COPIES        COST
  160.                        Up to 20  .....  $50 (US)
  161.                              50  ..... $100
  162.                             100  ..... $150
  163.                    200 and over  ..... $1 per copy
  164.     The purchaser of a site license receives several benefits:
  165.             * A copy of the latest version of ZIP (and other useful 
  166.          programs) on disk direct from the author.
  167.             * Support.  You can get help with any questions or 
  168.          problems you encounter in using ZIP.  Future upgrades can 
  169.          be ordered on disk when desired.
  170.             * A license documenting the legality of your company's 
  171.          use of ZIP.
  172.             * Your employees can use ZIP at home and share it with 
  173.          friends without raising issues of software piracy.
  174.  
  175.  
  176. COMMERCIAL SALE.  Any software dealer or library may offer ZIP for sale, as 
  177.     long as the price charged for the disk containing ZIP does not exceed US 
  178.     $6.  With this single exception, the sale of ZIP, either alone or together 
  179.     with other software or hardware, requires a licensing agreement.  Please 
  180.     write for terms.
  181.  
  182.  
  183. ORDERING AND SOURCES.  Site licenses and individual registrations may be 
  184.     ordered directly from the author (see address below), by check or money 
  185.     order in US currency; purchase orders are also accepted.
  186.          CREDIT CARD ORDERS ONLY (VISA,MC,AmEx,Discover), including 
  187.     international, for licenses and registrations may be made through the 
  188.     Public Software Library: phone (800)242-4775 or (713)524-6394, FAX 
  189.     (713)524-6398, CompuServe [71355,470].  Mention item #10304.  (There is a 
  190.     $5 surcharge for this service.)
  191.          ZIP is distributed widely through "shareware" channels.  Users with a 
  192.     modem can download the latest version as the archive file ZIPxxx.ZIP, 
  193.     available from the primary distribution point: on CompuServe, in download 
  194.     library 4 (DL4) of the IBMCOM forum.
  195.          In addition, ZIP is available on a variety of other remote systems, 
  196.     and by mail from many good software libraries, including the Public 
  197.     Software Library, P.O. Box 35705, Houston TX 77235.  (Disk #1674)
  198.  
  199.  
  200. FOREIGN USERS.  ZIP has a growing number of users elsewhere in the Americas, 
  201.     Europe, and the Far East.  In many countries, retail software is scarce or 
  202.     expensive, and shareware is an even more attractive alternative.  
  203.     Registrations from overseas are warmly encouraged, and users receive full 
  204.     support, including disks by airmail, at no extra charge.  Payment can be 
  205.     made by international credit card through Public Software Library; or you 
  206.     can send money orders in US currency, drawn on a US affiliate bank, 
  207.     directly to the author.  Modest amounts of US cash ($50 or less) can also 
  208.     be sent safely by registered mail.
  209.  
  210.                   Address all correspondence to the author:
  211.  
  212.             Eric Meyer
  213.          3541 Smuggler Way            CompuServe: [74415,1305]
  214.     Boulder, Colorado  80303  USA       Internet: 74415.1305@compuserve.com
  215.  
  216.  
  217.               THE CUSTOMARY DISCLAIMER:  You undertake to use ZIP at 
  218.          your own risk.  The author does not warrant the suitability 
  219.          of ZIP for any particular purpose, and assumes no liability 
  220.          for damages of any kind resulting from its use.
  221.  
  222.  
  223. ========================== 2. PREPARING TO USE ZIP ===========================
  224.  
  225.  
  226.      Before you can use ZIP, you will need to have a copy of the same version 
  227. of ZIP.COM on both computers, and the correct cable connection between them.  
  228. If incompatible disk formats prevent you from getting ZIP.COM itself onto the 
  229. second computer to begin with, you can "clone" ZIP with the ZIPDUP utility 
  230. (see below).  For more on null modem cables, or if you have an HP95LX palmtop, 
  231. see the TECHNICAL INFORMATION section below.
  232.  
  233.  
  234.                      A. SETTING THE SERIAL PORT AND SPEED
  235.  
  236.      IBM-compatible computers have anywhere from one to four serial (RS232) 
  237. ports, and on each computer you must tell ZIP which port you have connected 
  238. its cable to.  By default ZIP uses the COM1 port.  The standard port addresses 
  239. are:                  COM1: 03F8h         COM3: 03E8h
  240.                       COM2: 02F8h         COM4: 02E8h
  241. Some computers (including PS/2s) use different addresses for COM3 and COM4; 
  242. nonstandard port addresses can be specified in hexadecimal, but only by 
  243. modifying ZIP.COM with the ZIPCFG utility.
  244.      You can select any standard COM port during operation of ZIP:  in menu 
  245. mode, just select the choice to modify "P"arameters.  In command-line mode, 
  246. specify one of the following options:
  247.  
  248.               /1-4  = use port COM1-4.
  249.  
  250.      Data transmission can take place at a wide range of speeds.  ZIP normally 
  251. works at the fastest possible speed, 115200 bps, and most users will not need 
  252. to change this.  To accommodate certain computers or software environments, it 
  253. may be necessary to set a somewhat slower speed.  In fact, ZIP can be slowed 
  254. down all the way to 2400 bps, so that it might even operate over a good modem 
  255. connection.  In any event, you must have the same rate set on both ends.
  256.      In menu mode, just select the choice to modify "P"arameters.  In command 
  257. line mode, specify the option:
  258.  
  259.               /Bnnnn  = use speed nnnn (BPS)
  260.  
  261. The allowed speeds "nnnn" are 115200, 57600, 38400, 19200, 9600, 4800, 2400; 
  262. each may be abbreviated to as few as two digits ("/B96").  To change your 
  263. default setting, use ZIPCFG.
  264.      You will see a note in the ZIP signon message, "Speed=____ Port=____", 
  265. giving the port address and speed currently in use.
  266.  
  267.  
  268. ------------------------ B. MENU vs COMMAND-LINE MODE ------------------------
  269.  
  270.      Once your cable is connected and you have chosen the correct ports and 
  271. speed, you can use ZIP in one of two ways, both of which are described more 
  272. fully below:
  273.  
  274.               1.  MENU-DRIVEN OPERATION.  Simply type "ZIP" on both 
  275.          machines.  You will see a menu of choices including 
  276.          sending, receiving, or fetching files; listing or comparing 
  277.          directories; logging a new directory; deleting files; 
  278.          entering server mode; unlinking the server; changing 
  279.          parameters; or getting help with options.  Just type the 
  280.          highlighted letter of your selection.
  281.  
  282.               2.  COMMAND-LINE OPERATION.  Any single operation can 
  283.          be performed from the DOS command line, by providing the 
  284.          correct arguments and options.  For a brief help message, 
  285.          including additional options, type "ZIP /?".
  286.  
  287.      If there is a problem with your cable or port/speed settings, the message 
  288. "Ready" will remain on screen; abort and try again.
  289.  
  290.      ZIP's operation can be interrupted by pressing Escape, ^C, or Ctrl-Break:
  291.           (1) during initial connection attempt (otherwise, ZIP waits
  292.                 as long as necessary for connection)
  293.           (2) during file transfer (on receiving end, your keypress
  294.                 will not be noticed until the current file is finished)
  295.           (3) at any user prompts.
  296.  
  297.  
  298. =========================== 3. TRANSFERRING FILES ============================
  299.  
  300.                                A. SENDING FILES
  301.  
  302.      Transferring files between computers with ZIP is as easy as copying them 
  303. from one disk to another.  In menu mode, simply select "S"end, and you will be 
  304. prompted for the filename(s) and then a directory to send them to.  (For the 
  305. current default directory on the other end, just press ENTER.)  For command- 
  306. line use, give the filename(s) to send as part of the ZIP command, and if you 
  307. want to specify a destination directory, add it as an option in brackets: 
  308.  
  309.               C>zip FILENAME /[DESTDIR]
  310.  
  311.      In either mode, the "FILENAME" can be a single FILE (including path), or 
  312. a GROUP specified by wildcards (eg, *.BAK), or an "@FILE" (see AUTOMATING), or a 
  313. LIST of any of these delimited by commas or spaces.  Each item assumes or 
  314. continues the same path as the previous one, unless the new one begins with a 
  315. drive or root directory.  Thus the list:
  316.               d:\sf\gort, ltrs\*.892, klaatu
  317. refers to files D:\SF\GORT, D:\SF\LTRS\*.892, and D:\SF\LTRS\KLAATU.
  318.  
  319.      Any other desired options may also follow the filename(s), though only 
  320. the selection options /P,N,E,T are valid in menu mode.  Take care not to send 
  321. two files with the same name to the same receiving directory, as one would 
  322. overwrite the other.  ZIP will not send DOS Hidden or System files.
  323.      By the name of each file to be transferred you will see a bar composed of 
  324. one "=" sign for each 64k of file size; each will turn into a blinking 
  325. asterisk "*", then disappear as the transfer progresses, the last one leaving 
  326. a period "." when finished.
  327.  
  328.  
  329. ----------------------------- B. RECEIVING FILES -----------------------------
  330.  
  331.      In menu mode, simply select "R"eceive, and you will be prompted for the 
  332. directory to receive files into.  For command-line use, specify the option:
  333.  
  334.               /R  = RECEIVE files
  335.  
  336. and, if you want, a directory to receive files into, in brackets:
  337.  
  338.               C>zip /r[DESTDIR]
  339.  
  340.      Do not supply a filespec before the /R option; the sender determines the 
  341. files to be sent.  By default, files are received into the current directory.  
  342. Any destination directory specified by the sender overrides the receiver's 
  343. directory.  Of the selection options, only /P may be used when receiving.
  344.      A received file bears the same filename and DOS timestamp as the file 
  345. sent, but any DOS attributes it may have had (Read/Only, Archive, etc) are not 
  346. similarly preserved.
  347.  
  348.  
  349. ---------------------- C. SELECTING FILES FROM A GROUP -----------------------
  350.  
  351.      If you want to transfer only certain files in a group with ZIP, you can 
  352. request that you be prompted to confirm each file individually: you will be 
  353. asked to hit a key (Y/N) to determine whether each file is to be sent.  (In 
  354. menu mode, you can select "O"ptions for a help message describing the 
  355. selective copy operations.)  After the file (or for receiving, directory) 
  356. names, in either menu or command-line mode, specify the option:
  357.  
  358.               /P  = PROMPT to confirm files individually
  359.  
  360. If option /P is in use on the receiving end and "No" is entered, the message 
  361. "<Declined>" will appear on the sending end.
  362.      This option can be specified independently on either or both ends, but 
  363. has no effect in server mode.
  364.  
  365.  
  366. ---------------------- D. BACKUPS AND OVERWRITING FILES ----------------------
  367.  
  368.      ZIP offers several features that are particulary useful for reconciling 
  369. the contents of directories which are duplicated (in whole or part) on both 
  370. computers.  By default, ZIP doesn't care what files may already exist on the 
  371. receiving end: it will transfer all files specified, whether or not they 
  372. overwrite existing ones.  Three options are provided to modify this behavior.  
  373. (In menu mode, you can select "O"ptions for a help message describing the 
  374. selective copy operations.)  After the names of files to be transferred, in 
  375. menu or command-line mode, specify one (or two) of these options:
  376.  
  377.               /N  = copy NONexisting files only
  378.                        (cannot be used with /E or /T)
  379.               /E  = copy EXISTING files only
  380.               /T  = TIMESTAMP determines files sent
  381.  
  382.      The /N option will prevent all existing files from being overwritten.  
  383. The /T option will allow overwrites only when the new copy has a more recent 
  384. timestamp.  The /ET combination is especially useful for selective backup 
  385. purposes: it transfers only more recent copies of files that already exist.
  386.      Example: if you want to make the contents of two nearly identical 
  387. directories exactly so, do one transfer "*.* /T" each way; or use "*.* /N" 
  388. instead if you want differing versions of individual files to remain so.
  389.      These options can be specified only on the sending (or active) end.
  390.  
  391.  
  392. ------------------- E. DIRECTORY, DELETE, AND LOG COMMANDS -------------------
  393.  
  394.      When ZIP is in menu mode, you will see choices for "D"irectory and 
  395. d"E"lete, offering simple file maintenance without exiting ZIP.COM.
  396.      The directory function provides an alphabetized file listing for your 
  397. reference, and shows the free space left on the disk (unless this is greater 
  398. than 64 MB).  You will be prompted for the files to list.  If you just hit 
  399. RETURN, ZIP lists all files (*.*) in the default directory.
  400.      The delete function prompts for a filespec to delete; as always, a path 
  401. and/or wildcards may be included.  It accepts only a single filespec, not a 
  402. list of them.  Deletion is immediate; BE CAREFUL, especially when using 
  403. wildcards.
  404.      ZIP will not list or delete DOS Hidden or System files.
  405.  
  406.      Although you can always type the full path information for any files you 
  407. want to look for or transfer, if you're going to be working in a different 
  408. directory for a while, it can be more convenient to change ZIP's default 
  409. directory.  In menu mode, the "L"og command will let you do this; you will be 
  410. prompted for the new drive and/or directory, or you can just hit RETURN to 
  411. check the current directory.  Initially, of course, the default is the current 
  412. DOS directory.  (The Log command works much like the DOS command CHDIR, except 
  413. that ZIP does not actually change the current DOS directory, it simply keeps 
  414. its own record of the directory you want to be working in.)
  415.  
  416.  
  417. =============================== 4. SERVER MODE ===============================
  418.  
  419.  
  420.      It would obviously be easier to transfer files if you could do all the 
  421. typing from one keyboard, and "server mode" lets you do just that.  ZIP can 
  422. remain on line on one end, ready to obey instructions from the other end 
  423. automatically.  To enter server mode: in menu mode, just select the choice for 
  424. ser"V"er.  In command line mode, specify the option:
  425.  
  426.               /S  = SERVER mode
  427.  
  428. and if you want, a new default directory for ZIP operations in brackets:
  429.  
  430.               C>zip /S[DFLTDIR]
  431.  
  432. Otherwise, the default is the current DOS directory.
  433.  
  434.      ZIP will now wait to receive commands (described below) from the other 
  435. computer.  When you are finished, you can press Escape, ^C, or Ctrl-Break to 
  436. exit server mode.
  437.  
  438.      Alternatively, you can give an instruction to terminate server mode from 
  439. the other ("active") keyboard.  In menu mode, select the choice for "U"nlink 
  440. before quitting.  In command-line mode, specify the option:
  441.  
  442.               /U  = UNLINK server (after current exchange is complete)
  443.  
  444. Any request that you make for communication with the server will wait, 
  445. displaying the message "Ready", until ZIP is detected running in server mode 
  446. on your other computer.
  447.  
  448.  
  449. ----------------------- A. SENDING AND FETCHING FILES ------------------------
  450.  
  451.      When one copy of ZIP is running in server mode, it is ready to accept any 
  452. files that you transfer to it from the other (active) keyboard; these will be 
  453. received on the server end, into any directory specified by the sender, or by 
  454. default into the server's current directory.
  455.  
  456.      You can also ask the server to send files to you.  In menu mode, just 
  457. select "F"etch, and you will be prompted for the files to fetch and a 
  458. directory to put them in.  In command-line mode, specify the option:
  459.  
  460.               /F  = FETCH specified files from server
  461.  
  462. and, if you want, a directory to put the received files in:
  463.  
  464.               C>zip FILENAME /F[DESTDIR]
  465.  
  466. Otherwise they will be put in the current directory.
  467.  
  468.      You must specify the path with the filenames to be fetched, if they are 
  469. not to be found in the default directory on the server end.  Any of the 
  470. selection options (/P,N,E,T) may be used.
  471.  
  472.  
  473. --------------- B. SERVER DIRECTORY, DELETE, AND LOG COMMANDS ----------------
  474.  
  475.      If your other computer is running ZIP in server mode, you can also 
  476. request a directory from it, delete files on it, or log a new directory on it.  
  477. In menu mode, when using the "D"irectory, d"E"lete, or "L"og commands, simply 
  478. type a ">" before an argument to indicate that it applies to the server.  This 
  479. can be done either alone, or together with a request on the active end:
  480.  
  481.               Directory: \WORK\*.BAK                active alone
  482.               Delete:    >B:\BACKUP\OLD.FIL         server alone
  483.               Log:       \WORK\*.BAK >B:\BACKUP     combined
  484.  
  485. As a convenience, since the two computers may have a similar directory 
  486. structure, you can also type a quote mark (") to log the same default 
  487. directory for the server.
  488.  
  489.               Log: >"                ...logs same dir on the server as here
  490.               Log: C:\WORK >"        ...logs C:\WORK on the server, too
  491.               Log: C:\WORK >D:"      ...logs D:\WORK on the server
  492.  
  493.      For command-line use, you can specify one of the options:
  494.  
  495.               /D[FILESPEC]  = Directory listing on server
  496.               /K[FILESPEC]  = Kill (delete) file on server
  497.               /L[NEWDIR]    - Log new directory on server
  498.  
  499. /D alone lists all files "*.*", or it can be followed by a filespec in 
  500. brackets, like "/D[\*.BAT]".  /K requires a filespec in brackets.
  501.  
  502.      Directory and deletion requests accept only a single filespec, not a list 
  503. of them.  Deletion is immediate; be careful.
  504.  
  505.  
  506. ---------------------- C. COMPARING DIRECTORY CONTENTS -----------------------
  507.  
  508.      If your other computer is running ZIP in server mode, you can also 
  509. compare the contents of directories, showing files that appear in one but not 
  510. the other, or that exist in different versions.  (This can be used, for 
  511. example, as a preview of what files will be transferred if you use the /N or 
  512. /T option.)  Common identical files are not shown.
  513.      In menu mode, just select the choice to "C"ompare.  You will be prompted 
  514. for the files to compare.  If you just hit RETURN, ZIP compares all files 
  515. "*.*" in the default directory on each end.  Type a ">" if you want to specify 
  516. a different directory on the server:
  517.  
  518.           Compare: >\BACKUP           active *.* with server \BACKUP\*.*
  519.           Compare: *.DOC              active *.DOC with server *.DOC
  520.           Compare: *.DOC >\BACKUP     active *.DOC with server \BACKUP\*.DOC
  521.  
  522.      ZIP will produce two listings: first files on the active end that don't 
  523. match up with those on the server, and then vice versa.  If a file appears on 
  524. both ends, but in differing versions, it will be flagged with a "+" or "-" to 
  525. indicate which appears to be the later (+) or earlier (-) version, according 
  526. to the files' timestamps.
  527.  
  528.      Alternatively, from the command line, you can specify the option:
  529.  
  530.               /C  = Compare with server
  531.  
  532. All files "*.*" are compared, unless you provide a filespec.  The option can 
  533. be followed by a directory in brackets:
  534.  
  535.               C>zip FILENAME /C[SRVRDIR]
  536.  
  537. otherwise, the default directory on the server is assumed.
  538.  
  539.  
  540. ========================== 5. FURTHER USAGE NOTES ============================
  541.  
  542.                       A. EXAMPLES OF COMMAND-LINE SYNTAX
  543.  
  544.     SENDING FILES:
  545.  
  546.  C>zip b:myfile *.doc              send files B:MYFILE, B:*.DOC
  547.  
  548.  C>zip *.bak /[b:\recs]            send files *.BAK to directory B:\RECS
  549.  
  550.  C>zip my.* /2 /p                  send files C:MY.* over COM2, with prompts
  551.                                  to confirm each file individually
  552.  
  553.  C>zip *.* /n                      send all files which don't already exist
  554.                                  in receiver's default directory
  555.  
  556.  C>zip a:chapter.* /et             send all files A:CHAPTER.* of which an
  557.                                  older version exists on the receiving end
  558.     RECEIVING FILES:
  559.  
  560.  C>zip /r /3                       receive files over COM3
  561.  
  562.  C>zip /rp[\temp]                  receive, with default directory C:\TEMP,
  563.                                  prompting to confirm each file individually
  564.     ENTERING SERVER MODE:
  565.  
  566.  C>zip /s2b38                      wait as server, at 38400 bps on COM2
  567.  
  568.  C>zip /s[d:\]                     wait as server, with default directory D:\
  569.  
  570.     EXCHANGING FILES WITH SERVER:
  571.  
  572.  C>zip b:\recs\my.* /f[\orig]      fetch files MY.* from directory B:\RECS
  573.                                  on server into directory C:\ORIG here
  574.  
  575.  C>zip my.fil,my.bak /u            send MY.FIL and MY.BAK to server's default
  576.                                  directory, then unlink server
  577.  
  578.     FILE MANAGEMENT WITH SERVER:
  579.  
  580.  C>zip /d[\work\*.bak]             show all server's files \WORK\*.BAK
  581.  
  582.  C>zip /k[junk]                    delete server's file JUNK
  583.  
  584.  C>zip *.txt /c[\mydir]            compare *.TXT with server's \MYDIR\*.TXT
  585.  
  586.  C>zip /l[a:\]                     log directory A:\ on server
  587.  
  588.  
  589. ------------------------- B. AUTOMATING USE OF ZIP ---------------------------
  590.  
  591.      There are several ways of performing complex repetitive tasks, like 
  592. backing up several groups of files, more easily with ZIP, by taking advantage 
  593. of its own features (indirect filename lists in "@files") or those provided by 
  594. MSDOS (batch files, input redirection).
  595.  
  596.  
  597.                          Indirect File Lists (@files)
  598.  
  599.      A number of file management and communications utilities can write a list 
  600. of filenames selected according to various criteria to a file, or accept the 
  601. name of such a file following an "@" sign to process all the filenames it 
  602. contains; ZIP also honors this convention.  You can also create such a file 
  603. yourself, with any text editor, inserting the names of files which you may 
  604. often want to transfer as a group.  Such an "@FILE" should contain complete 
  605. filespecs (with drive and path), separated by spaces and/or carriage returns.  
  606. ZIP can then be used to transfer those files.
  607.      For example, if file "FLIST" contains the names:     c:\work\*.bak
  608.                                                           c:\myfile
  609.  
  610. then "ZIP @FLIST" will send files C:\WORK\*.BAK and C:\MYFILE.
  611.      Options can only be specified on the command line after the @file name 
  612. (not within the @file), and will affect all files transferred.
  613.  
  614.  
  615.                                Redirected Input
  616.  
  617.      Because ZIP accepts standard DOS input redirection ("<"), you can 
  618. automate a frequently performed series of tasks (sending groups of files to 
  619. different directories, etc) by running ZIP in menu mode with redirected input.
  620.  
  621.      You might, for example, need to back up the entire contents of a sizable 
  622. disk, including several levels of directories.  ZIP is not specifically 
  623. designed to do this: it does not create directories while copying, nor does it 
  624. look for files within subdirectories.  However, it is easy enough to put the 
  625. receiver in Server mode, then run ZIP with a redirected input file containing 
  626. transfer commands for each desired directory (once corresponding directories 
  627. exist on both ends).
  628.  
  629.      Redirected input is a sort of "script" describing a complex task.  You 
  630. will need to create a text file containing exactly the keystrokes you would 
  631. use to perform a task; think about the way ZIP prompts for input, and work out 
  632. your responses carefully.  (Note, for example, that when you select an option 
  633. like "S"end you don't hit [Enter] afterward, but when you provide a filename 
  634. you do.)
  635.      For example, if the file "ZINPUT" contains:     Sc:\work\*.* /t
  636.                                                      e:\work
  637.                                                      Sc:\work\ed\*.* /t
  638.                                                      e:\work\ed
  639.                                                      Q
  640.  
  641. then "ZIP <ZINPUT" would back up (with the "/T" option) all files in C:\WORK 
  642. to directory E:\WORK on the receiving end, and similarly for the directory 
  643. C:\WORK\ED, then quit ("Q").
  644.      Any command-line options must precede the "<" redirection character.  Use 
  645. of the /P option is not advisable while using redirected input, since the 
  646. correct number of "Y/N" responses would have to be in the input file.  You 
  647. should always end the file with "Q" to quit, since DOS does not return to the 
  648. keyboard for further input if the end of the redirected file is reached.
  649.  
  650.  
  651.                                  Batch Files
  652.  
  653.      Since every feature can be accessed from the command line, ZIP is easy to 
  654. use in batch (.BAT) files.  Batch files run a little more slowly than the 
  655. other methods above, but they can contain replaceable arguments, tests for the 
  656. existence of files or directories, prompts and jumps for the user to choose 
  657. different courses of action, and other powerful features.  See your MSDOS 
  658. manual for details.
  659.  
  660.      If an error occurs during operation in command-line mode, ZIP sets the 
  661. DOS error code, so that a batch file can test the ERRORLEVEL to determine 
  662. subsequent action.  Normally 0, the value returned will indicate which of the 
  663. following errors occurred:
  664.      1 = argument error                   8 = transmission error
  665.      2 = out of memory/too many files    16 = disk error (full?)
  666.      4 = connect error/no server        128 = user abort
  667.  
  668.  
  669.  
  670. ============================ 6. UTILITY PROGRAMS =============================
  671.  
  672.                           A. CLONING ZIP WITH ZIPDUP
  673.  
  674.      ZIP comes with a utility program, ZIPDUP, to make it easier to get a copy 
  675. of ZIP.COM onto another computer.  If you can't exchange disks between your 
  676. computers, ZIPDUP gives you a way to duplicate or "clone" ZIP onto the second 
  677. computer over the serial cable.  This is a feature most people need only once, 
  678. so it is not part of ZIP itself.  ZIPDUP will duplicate any version of ZIP 
  679. (indeed, it will duplicate any file, though it's slow and cumbersome compared 
  680. to ZIP itself).  To clone ZIP with ZIPDUP:
  681.  
  682.      1.  Connect the cable to the desired serial port on each computer.  You 
  683. must use COM1 or COM2 only; and the cable must have the DTR lines connected, 
  684. as well as the data lines -- see cabling diagram under TECHNICAL INFORMATION 
  685. below -- or ZIPDUP will not work.  (In this event, you'll need to have a 
  686. telecom program running on both computers, to transfer ZIP.COM via some 
  687. protocol like XMODEM.)
  688.  
  689.      2.  Set up the receiving end:  Make sure the MSDOS utilities DEBUG and 
  690. MODE are available (either in the current directory or in your PATH); you will 
  691. have to use MODE, and ZIPDUP uses DEBUG.
  692.      Be certain that the last character of your DOS prompt is ">".  (Yes, this 
  693. actually matters!)  If in doubt, type the command:
  694.               PROMPT $P$G
  695.      Then prepare to receive data by typing these two commands:
  696.               MODE COM#:96,N,8,1     ("#" = 1 or 2 only)
  697.               CTTY COM#
  698. The CTTY command gives control to the sending computer, via the COM# port.  
  699. The receiving system will seem to "lock up", ignoring any keyboard input.
  700.  
  701.      3.  Now, on the sending end, to duplicate your copy of ZIP.COM, type:
  702.               ZIPDUP ZIP.COM
  703. (Actually, you can omit the filename if it is "ZIP.COM"; otherwise, type it.)
  704.      You will be asked to specify the COM port (again, 1 or 2 only) that the 
  705. cable is connected to; if the connection can be made, the transfer will 
  706. proceed.  When ZIPDUP is finished, you will find a duplicate copy of ZIP.COM 
  707. in the current directory on the receiving computer.  You can transfer other 
  708. files the same way, but it's easier and faster now to use ZIP itself!
  709.  
  710.  
  711. ---------------------- B. CHANGING DEFAULTS WITH ZIPCFG ----------------------
  712.  
  713.      A second utility, ZIPCFG, allows you to tailor ZIP to your requirements.  
  714. Normally, unless you've instructed it otherwise (via command-line options or 
  715. menu choices), ZIP assumes its built-in "defaults" of 115200 bps, port COM1.  
  716. You can, however, configure your copy of ZIP.COM to change these defaults as 
  717. you like; just type:
  718.               ZIPCFG ZIP.COM
  719. (Actually, you can omit the filename if it is "ZIP.COM"; otherwise, type it.)
  720.  
  721.      To change your defaults, select "Edit" from the ZIPCFG menu, make 
  722. changes, then select "Save"; to restore the original settings, select 
  723. "Restore".  To exit without saving changes, select "Quit".
  724.  
  725.      The "Edit" procedure takes you through a sequence of settings you can 
  726. change.  For the port you may enter simply "COM1" through "COM4", or any other 
  727. specific hexadecimal address required by your hardware ("03F0", etc).  For the 
  728. speed you must choose by letter from the allowed values.
  729.  
  730.      There is also a setting to force 40-column display width.  Normally this 
  731. is set to "No"; you will see "Width=AUTO", and ZIP adapts itself to the 
  732. current video mode (40/80 columns).
  733.  
  734.      Finally, ZIPCFG offers you a choice of color output (via the IBMPC BIOS) 
  735. or standard DOS output.  You might want to select DOS output if color output 
  736. does not display correctly on your video system, or if you will want to 
  737. redirect output from ZIP to a file or device (color output does not redirect).
  738.      If you select color, ZIPCFG displays a palette and offers you a choice of 
  739. text colors.  ZIP uses three different colors: a "message" color, a "hilight" 
  740. color for contrast, and an "active" color (during file transfer activity).  
  741. Each is specified by an "attribute byte" consisting of two hex digits, for a 
  742. background and foreground color.  ("17" = "1", blue background, & "7", white 
  743. text.)  The color digits are:
  744.          0 = BLACK   4 = red       8 = GREY           C = bright red
  745.          1 = blue    5 = magenta   9 = bright blue    D = bright magenta
  746.          2 = green   6 = brown     A = bright green   E = yellow
  747.          3 = cyan    7 = WHITE     B = bright cyan    F = BRIGHT WHITE
  748.      The palette will include 128 colors from 00-7F.  Use of colors 8-F as 
  749. background (80-FF) is also possible but not recommended, since on most systems 
  750. this produces blinking video.  Some colors may be invisible or indistinguish- 
  751. able on monochrome screens, though all MDA systems can display black, white 
  752. and bright white (which are the default colors), and in some cases grey also.
  753.  
  754.      Please DO NOT distribute modified copies of ZIP.COM; this could confuse 
  755. other users.  They are for your personal use only.  (ZIPCFG includes an option 
  756. to restore the original default values.)
  757.  
  758.  
  759. ========================== 7. TECHNICAL INFORMATION ==========================
  760.  
  761.                             A. GENERAL INFORMATION
  762.  
  763.      ZIP requires about 128k of free memory to run.  Like most communications 
  764. programs, ZIP does full CRC (Cyclic Redundancy Checksum) verification on the 
  765. data to guarantee accurate transfer.  But ZIP uses its own transfer protocol, 
  766. which is not compatible with other programs.  Be sure to use the same version 
  767. of ZIP on both ends: the transfer protocol may have changed.  Do not disturb 
  768. the cable when ZIP is running, as it will be unable to resume its task; you 
  769. will have to abort the program and try again.
  770.  
  771.      ZIP does not use interrupts, so it will not conflict with the IRQ usage 
  772. of other hardware or software; but do not use ZIP while the specific serial 
  773. port chosen is being used by another program.
  774.  
  775.      Using any communications software in a multitasking environment often 
  776. requires special precautions.  ZIP is DESQview-aware, and will disable any 
  777. multitasking while transferring files.  Under other environments, ZIP may need 
  778. to be given a "non-swappable" or "foreground-operation" status, so that other 
  779. tasks will not interfere with its operation.  (Under Windows, you must create 
  780. a PIF file and give ZIP both background and foreground priority.)  You may 
  781. also need to set a slower speed for ZIP to work reliably.
  782.  
  783.      ZIP works well on the vast majority of systems.  If you experience 
  784. unresolvable conflicts with other memory-resident software, such as background 
  785. processes or disk caches, do not use ZIP when that software is in operation.
  786.  
  787.  
  788. --------------------- B. USING ZIP ON THE HP95LX PALMTOP ---------------------
  789.  
  790.      The Hewlett-Packard 95LX palmtop computer is "nearly" IBM-compatible; ZIP 
  791. will work on it, but there are some special considerations.
  792.      The HP95LX serial port does not support DTR, so ZIPDUP will not work on 
  793. it; instead, to transfer ZIP.COM to the 95LX, you must use the 95LX's internal 
  794. software.  You can purchase the HP Connectivity Pack, which includes a cable, 
  795. or you can buy the serial cable (#HP82222A) separately and use the 95LX COMM 
  796. utility together with any PC communication program to transfer ZIP.COM via 
  797. KERMIT or XMODEM protocol at 19200 bps.
  798.      ZIP automatically detects the 95LX and sets itself for the COM1 port and 
  799. 40 column screen.  Thus you can use the same copy of ZIP.COM on your 95LX as 
  800. on your PC; modification with ZIPCFG is not needed.
  801.      ZIP can be run either from the Filer (highlight and press F4, Run) or 
  802. from the DOS system prompt.  ZIP automatically powers up the serial port in 
  803. WIRE mode, and turns it off again upon exit to conserve batteries, so use of 
  804. the SERCTL command is not necessary.
  805.  
  806.  
  807. ------------------------ C. APPROPRIATE SERIAL CABLES ------------------------
  808.  
  809.      SERIAL NULL MODEM CABLES, in various combinations of 9- and 25-pin 
  810. connectors, are available from a wide variety of sources, and a simple cable 
  811. in the configuration you need (for example, DB9 to DB25 female) should cost 
  812. less than $10 at Radio Shack or many computer stores.  Double-headed null 
  813. modem cables (both 9 and 25 pin on each end) are also made, and would be ideal 
  814. for use with ZIP; I am told that a good source for these is:
  815.      DALCO, 233 Pioneer Blvd, Springboro OH 45066; (800)445-5342
  816.  
  817.      If you're building or shopping for a cable, you need a "null modem" 
  818. cable, meaning the transmit and receive data lines should be crossed, and the 
  819. signal ground connected straight through.  (The pin numbers depend on whether 
  820. you have a small DB9 or large DB25 connector, see figure.)  No other 
  821. connections should be needed; ZIP uses no hardware handshaking lines.  (NOTE: 
  822. ZIPDUP does require the DTR connections between pins 20/4 and 6.)
  823.  
  824.         |--COMPUTER 1--|         |--COMPUTER 2--|
  825.          DB9  or   DB25           DB25  or   DB9
  826.       pin 2 - - - - 3 - - - - - - - 2 - - - - 3   \ transmit &
  827.           3 - - - - 2 - - - - - - - 3 - - - - 2   / receive data
  828.           5 - - - - 7 - - - - - - - 7 - - - - 5   - signal ground
  829.  
  830.       pin 4 - - - - 20  - - - - - - 6 - - - - 6 * \
  831.           6 - - - - 6 - - - - - - - 20  - - - 4 *  \handshaking (optional)
  832.           7 - - - - 4 - - - - - - - 5 - - - - 8    /(* required for ZIPDUP)
  833.           8 - - - - 5 - - - - - - - 4 - - - - 7   /
  834.  
  835. Actually, any serial cable that doesn't work by itself, should work with a 
  836. "null modem adapter" attached.  If available, use a well shielded cable; high 
  837. speed transmissions can be especially susceptible to RF interference.
  838.  
  839.  
  840. ----------------------------- D. ERROR MESSAGES ------------------------------
  841.  
  842.      <Argument error>  invalid command-line argument(s).
  843. <Insufficient memory>  ZIP requires about 128k free RAM.
  844.       <Connect error>  can't connect -- bad cable? wrong version?
  845.           <No server>  function requires server mode on other computer.
  846.      <Too many files>  global filespec (eg *.*) includes over 1024 files.
  847.       <Bad directory>  specified drive or directory doesn't exist.
  848. <Error reading @file>  @file nested or too large to read.
  849.  <Conflict with NAME>  name conflicts with a directory or read/only file.
  850.        <Delete error>  specified file doesn't exist, is read/only, etc.
  851.          <Disk error>  trouble reading or writing to disk.  (Disk full?)
  852.             <Aborted>  you pressed Esc/^C/Ctrl-Break.
  853.               <Error>  communication error.
  854.  
  855.  
  856. ------------------------ E. VERSION HISTORY AND NOTES ------------------------
  857.  
  858.  
  859. Users of earlier versions should note the following changes in operation:
  860.  
  861.      NEW IN ZIP 1.62:  The /P option can now be specified on the receiving end 
  862. independently.  See also expanded instructions under "AUTOMATING USE OF ZIP".
  863.  
  864.      NEW IN ZIP 1.61:  The handling of directories to put files into has been 
  865. made simpler and more consistent:
  866.      (1)  You can always specify a destination directory when sending files; 
  867. this no longer requires the receiver to be in server mode.
  868.      (2)  When sending or fetching files, ZIP now prompts for a destination 
  869. only in menu mode.  Thus, in command line operation, if you want to specify a 
  870. destination, you must use the "[directory]" option; conversely, there is no 
  871. longer a need to specify a null option "[]" in a batch file to avoid the 
  872. prompt when the default directory is intended.
  873.  
  874.      NEW IN ZIP 1.6:  The server's default directory, which was formerly set 
  875. only with the command option /S[dir], and affected only receipt of files by 
  876. the server, can now also be changed from either end with the Log command, and 
  877. it affects all the server's operations: directory listings, file deletion, and 
  878. fetching files from the server as well.
  879.      Also, the delete command, which formerly worked only on a single 
  880. filename, now accepts wildcards ("?" and "*") to delete a group of files at 
  881. once.  Always use caution when deleting files.
  882.  
  883.  
  884. ZIP 1.0  (Apr88) - initial release.
  885.     1.1  (Apr88) - improved protocol; wildcard transfers; receive directory
  886.                   option; original file time/date preserved.
  887.     1.2  (May88) - improved error handling; can use COM3,4; minor fixes.
  888.     1.21 (May88) - slower speed options; fixed bug in initializing ports.
  889.     1.22 (Aug88) - improved protocol; fixed bug in deleting temp file.
  890.     1.23 (Jan89) - menu-driven operation; detects disk-full errors.
  891.     1.3  (Apr89) - selective copy options /P,N,E,T; server mode, fetch;
  892.                   file directory; internal improvements.
  893.     1.4  (Sep89) - improved protocol; Delete function; directory shows
  894.                   free space; ZIPCFG utility; small improvements.
  895.     1.41 (Nov89) - DesqView aware; multiple file arguments.
  896.     1.42 (Feb90) - minor improvements; ZIPDUP utility.
  897.     1.43 (Mar90) - simplified multiple argument syntax.
  898.     1.44 (Aug90) - protocol modified for use in network environments.
  899.     1.45 (Mar91) - 4800, 2400bps added; operation at slow speeds improved.
  900.     1.5  (Aug91) - unlink function; options /B,U,?; sets ERRORLEVEL;
  901.                   recovers from cable disruption; minor improvements.
  902.     1.51 (Jan92) - "@FLIST" ability; color output; 40-col operation.
  903.     1.52 (Jun92) - options /D,K; autoconfigures for HP95LX.
  904.     1.6  (Nov92) - Compare, Log commands; /C option; delete accepts wildcards;
  905.                   default directory affects all operations consistently.
  906.     1.61 (Dec92) - new /L option; minor fixes.
  907.     1.62 (Mar93) - speeded up /E,N,T transfers; /P works on both ends.
  908.  
  909.  
  910. ---------------------- F. ABOUT THE PROGRAM AND AUTHOR -----------------------
  911.  
  912.  
  913.      As of Fall 1992, ZIP has been well reviewed in numerous computer 
  914. newsletters, and Bantam Books has requested permission to include it on disk 
  915. with the next edition of "DOS Power Tools 6.0".  ZIP has already been included 
  916. on the HP Palmtop Paper's subscriber disk for HP95LX users, and on disk with 
  917. "The Little Laptop Book" by Steve Cummings, published by Peachpit Press.
  918.  
  919.          "lightning fast and simple to learn... simply dazzling... 
  920.          ZIP provides the fastest file transfer between PC's using 
  921.          the tiniest amount of disk space...  a simple, lean, and 
  922.          very effective program, not to mention the fastest of all 
  923.          the programs we looked at for this review."
  924.                          -- Bil. Alvernaz, Quantum PC Report, June 1992
  925.  
  926.  
  927.      Eric Meyer has also written the VDE editor/word processor and a number of 
  928. other utilities for IBM PC compatibles.  He holds an A.B. in physics and a 
  929. Ph.D. in history and philosophy of science, and has taught at the Universities 
  930. of Indiana, Oklahoma, and Colorado.  A longtime advocate of microcomputers, he 
  931. has done programming in HP-41, Z80 assembler, BASIC, FORTRAN, LISP, C, and 
  932. APL; lately he has been working mostly in 8086 assembler.  In a period of 
  933. escalating software complexity and prices, he still believes that useful, 
  934. inexpensive software should remain available to computer users worldwide.
  935.  
  936.  
  937. ====================================[end]=====================================
  938.