home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / oscpy250.zip / OSCOPY.DOC < prev    next >
Text File  |  1993-06-22  |  25KB  |  493 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                              SCOPY for OS/2
  7.  
  8.  
  9.           DISKETTE to FILE / FILE to DISKETTE / FILE TO FILE
  10.  
  11.                        COPY and ARCHIVE UTILITY
  12.  
  13.  
  14.                               Written by
  15.  
  16.                              Craig Gaumer
  17.  
  18.                                   and
  19.  
  20.                               Ed Bachman
  21.  
  22.  
  23.                                   For
  24.  
  25.                           C.E.Gaumer Software
  26.  
  27.                              P.O. Box 383
  28.  
  29.                      Laurys Station, PA 18059-0383
  30.  
  31.  
  32.              Copyright (C) 1990,1991,1993 All Rights Reserved
  33.  
  34.  
  35.  
  36.  
  37.                               DISCLAIMER
  38.  
  39.         It is the sole resposibility of the user to determine the
  40. suitability and fitness of SCOPY for the user's particular needs, uses
  41. and hardware.  C.E. Gaumer Software assumes no responsibility for any
  42. difficulties, problems or loss of data resulting from the use of SCOPY,
  43. even if C.E. Gaumer Software has been informed of the possibility of
  44. such difficulties, problems or losses.
  45.  
  46.  
  47.  
  48. Purpose:  SCOPY is a full featured Diskette Archiver.  SCOPY will
  49.           create a file which contains the necessary data to create
  50.           an exact duplicate of the original diskette.  SCOPY can
  51.           compress this file and include a user specified remark
  52.           for reference.  When creating the diskette SCOPY can
  53.           format the diskette and write the information to it in
  54.           one pass.  The diskette created by SCOPY is an exact
  55.           duplicate of the original.  In addition SCOPY can create
  56.           an OS/2 "DOS image" file identical to that created by the
  57.           VMDISK utility supplied with OS/2.  It can also recreate
  58.           a diskette from an image file.  To our knowledge no other
  59.           utility provides this function.
  60.  
  61. History:  SCOPY was originally created as a DOS program and was
  62.           first released in 1990.  Compression, CRC checking and
  63.           other enhancements were added as the product matured.
  64.           The files created by the OS/2 version are completely
  65.           compatible with the DOS version.  The 32 bit OS/2
  66.           version, however, is NOT the DOS version of SCOPY ported
  67.           to OS/2.  The OS/2 version was written from scratch with
  68.           full support for multi-threading and the OS/2 2.x 32 bit
  69.           API.
  70.  
  71. Use:      SCOPY has four basic modes of operation.  It can copy
  72.           from a diskette to a file, from a file to a diskette,
  73.           from one file to another, or can provide information
  74.           about and/or verification of a single file.  The proper
  75.           mode is automatically selected by SCOPY based on the
  76.           source and destination specified.
  77.  
  78. Quick
  79. Start:    SCOPY will perform its function quite well with no
  80.           command line switches.  Creating a SCOPY file called
  81.           MYFILE.SCP from the diskette in drive A is a simple as:
  82.                SCOPY A: MYFILE
  83.           To create a new diskette from that file the command is:
  84.                SCOPY MYFILE A:
  85.           The command line switches provide the user with
  86.           additional control and access to extra features but SCOPY
  87.           with only the source and destination specified as shown
  88.           above will efficiently perform the storage and retrieval
  89.           of diskette data.
  90.  
  91.  
  92. General
  93. Syntax:   For all modes the syntax of the SCOPY command is:
  94.           SCOPY <source> <destination> [/switches]
  95.           Either the source or destination can be a drive letter
  96.           (e.g. A:) while the other is a file, or both can be
  97.           files.  For information or verification of a single file
  98.           the destination is omitted.  For further information see
  99.           the individual descriptions of Diskette to File, File to
  100.           Diskette, File to File, or Single File and switches
  101.           below.
  102.  
  103. File
  104. Names:    The files created by SCOPY can have any filename which is
  105.           valid on the operating system on which the file will be
  106.           used.  SCOPY fully supports long filenames under OS/2.
  107.           To ensure full compatibility with the DOS version, SCOPY
  108.           presently makes no use of Extended Attributes.  The
  109.           filename can be specified as it would be to an OS/2
  110.           command like COPY including the drive and path, if
  111.           desired.  Wildcards are NOT permitted.  If no period
  112.           appears in the filename SCOPY adds .SCP to the specified
  113.           filename.  We suggest that SCOPY files have the '.SCP'
  114.           extension since we plan a PM based version that will
  115.           allow the user to 'drag and drop' a file onto a SCOPY
  116.           icon on the desktop and a common extension will prove
  117.           advantageous for OS/2 associations at that time.  Upper
  118.           and lower case in filenames are preserved by SCOPY.
  119.           Spaces in filenames are permitted.  As elsewhere in OS/2,
  120.           filenames which contain spaces must be enclosed in
  121.           quotes.  The drive specifier must be a single letter
  122.           followed by a colon.
  123.  
  124. Diskette
  125. to File:       To SCOPY a diskette to a file the syntax is:
  126.                SCOPY d: destfilename [/switches]
  127.                Valid switches are: O I R 0 1 2 C T
  128.  
  129. File to
  130. Diskette:      Syntax is:
  131.                SCOPY srcfilename d: [/switches]
  132.                Valid switches are: O I N F V R
  133.  
  134. File to File:  Syntax is:
  135.                SCOPY srcfilename destfilename [/switches]
  136.                Valid switches are: O I R 0 1 2 C
  137.  
  138. Single File:   Syntax is:
  139.                SCOPY filename [/switches]
  140.                Valid switches are V I R
  141.  
  142.  
  143. Switches: When specifying switches they may be listed separately or
  144.           together and with or without individual slashes.  The
  145.           switches are not case or order sensitive.  For example
  146.           the following switch sequences are all identical:
  147.           /o /r      /O/R      /or      /OR      /R/o
  148.           The following switches are supported:
  149.  
  150.           V    VERIFY: Test the integrity of a SCOPY file or
  151.                destination diskette.  Valid for single file or
  152.                file to diskette. Although verification of the CRC
  153.                checksum is done automatically during actual
  154.                copying, the 'V' switch used with file to diskette
  155.                will cause the entire diskette to be read after the
  156.                write is finished.  SCOPY will then compare this
  157.                information to the file data.  With a single file
  158.                verification of CRC and decompression information
  159.                will be performed.
  160.  
  161.           O    OVERWRITE: Instructs SCOPY not to prompt the user
  162.                if the destination file already exists or if the
  163.                diskette contains data.  SCOPY will write the
  164.                output erasing the previously existing file or
  165.                diskette data.  If this switch is not specified,
  166.                the user will be asked permission to overwrite an
  167.                existing file or a diskette which contains data.
  168.  
  169.           R    REMARK: Prompt the user for a remark to be embedded
  170.                in the destination file.  This remark will be
  171.                displayed  when SCOPY accesses the file for
  172.                verification or copying.  NOTE: For a file to file
  173.                copy the default is to copy the source file REMARK
  174.                to the destination file.  Using the 'R' switch in a
  175.                file to file copy results in the user being
  176.                prompted for a remark which will be used in the
  177.                destination file in place of the remark in the
  178.                source file. In file to disk or a single file
  179.                operation this switch causes the remark to be
  180.                written to the file SCOPYLBL.TXT in the current
  181.                directory.  The remark is appended to the file if
  182.                the file exists, otherwise the file is created.
  183.                This file can then be used as the data for printing
  184.                labels.  Of course, 'R' is not valid if the
  185.                destination of an operation is an image file.
  186.  
  187.  
  188.           I    IMAGE: Indicates to SCOPY that an OS/2 DOS image
  189.                file is involved in the operation.  An image file
  190.                is a bootable file created with the OS/2 VMDISK
  191.                command.  SCOPY can access these files in the same
  192.                way it accesses its own files.  Note that the
  193.                standard extension for SCOPY is still .SCP, so it
  194.                is wise to specify an extension. (or put a period
  195.                at the end of the filename if you prefer no
  196.                extension)  When the 'I' parameter is specified on
  197.                an operation involving only one file (any operation
  198.                except file to file) SCOPY assumes the file
  199.                involved is (or is to be) an image file.  For file
  200.                to file operations, if the source file is not a
  201.                SCOPY file it is assumed to be an image file.  If
  202.                the source file is a SCOPY file an image file is
  203.                created as the destination.  If the source file
  204.                specified with the I parameter is not an image or a
  205.                SCOPY file the result of the operation will be
  206.                incorrect.  This provides for all possibilities
  207.                except image to image copy which can be done
  208.                without SCOPY by using the normal OS/2 COPY
  209.                command.  Although diskettes could be stored in the
  210.                image format the SCOPY file format is preferred
  211.                since the image file has no verification
  212.                information and is not compressed.
  213.  
  214.      0,1,2,C   These are the compression level switches.  They are
  215.                used to specify the method of compression used when
  216.                a SCOPY file is being created.  When none of these
  217.                switches is specified 'smart compression' is used.
  218.                Since it is the default, the 'C' switch is really
  219.                never needed.  Level 1 compression compresses only
  220.                empty sectors and is best for diskettes which
  221.                contain files which are already compressed.  The
  222.                '2' switch enables LZ compression on a track by
  223.                track basis.  The '0' switch causes the file to be
  224.                totally uncompressed and is provided only for
  225.                compatibility with the original (version 0.x) DOS
  226.                SCOPY.  The 'C' switch (or no compression switches)
  227.                enables 'SMART COMPRESSION' and tests levels 1 and
  228.                2 and uses the level which provides the smaller
  229.                output file.
  230.  
  231.  
  232.  
  233.           N,F  These are the diskette formatting switches No
  234.                format and Force format.  If neither of these
  235.                switches is specified SCOPY inspects the target
  236.                diskette and formats the diskette if the diskette
  237.                is unformatted or if the format differs from that
  238.                required by the source file.  The 'F' switch causes
  239.                SCOPY to format the target diskette even if the
  240.                existing format is correct.  This switch should be
  241.                used if the diskette was formerly the target of a
  242.                SCOPY, DISKCOPY or FORMAT command that was aborted
  243.                before completion since such a diskette may be only
  244.                partially formatted causing SCOPY's format
  245.                detection to be confused.  The 'N' parameter will
  246.                cause the diskette not to be formatted.  If 'N' is
  247.                specified and the diskette is not formatted SCOPY
  248.                will abort.  If the format is incorrect SCOPY will
  249.                inform the user and present an option to abort or
  250.                write the data to the existing format.  Note that
  251.                if the existing format is equal to or larger than
  252.                the required format in number of heads, number of
  253.                cylinders and sectors per track the file may be
  254.                written to the diskette and the diskette will
  255.                function correctly.  This is useful for making a
  256.                low density diskette for use on a machine with high
  257.                density drives since many 1.44Meg diskette drives
  258.                do not properly recognize (or may not properly
  259.                create) a 3.5" diskette with a 360K or 1.2Meg
  260.                format.  By formatting the diskette to 1.44Meg and
  261.                then writing the lower density data to the diskette
  262.                with the 'N' switch the sector spacing and timing
  263.                of the higher density is maintained while the
  264.                operating system recognizes the lower density and
  265.                the diskette will function correctly.  Note that no
  266.                testing is done by SCOPY to see that the existing
  267.                format is larger than the required format and if
  268.                the size requirements are not met errors will occur
  269.                during the diskette write. (SCOPY will properly
  270.                report these errors)
  271.  
  272.           T    Test diskette size: This switch instructs SCOPY to
  273.                test the physical diskette for heads, cylinders and
  274.                sectors per track before reading the diskette data.
  275.                Only the following sizes are detected at this time:
  276.                2.88Meg, 1.44Meg, 1.2Meg, 720K, 360K, 320K, 180K,
  277.                160K.  This makes it possible to SCOPY diskettes
  278.                with an invalid or non standard boot sector (1.44
  279.                Meg UNIX and Macintosh diskettes, RISC6000
  280.                diskettes, normal diskettes with bad boot sectors
  281.                and probably others) It is recommended that /F is
  282.                used to format the target diskette when writing
  283.                these files back to diskette.  Note that while the
  284.                feature to read non-standard diskettes is not
  285.                currently available in the DOS version of SCOPY the
  286.                DOS versions can create diskettes from these files.
  287.  
  288.  
  289. Prompts:  Various user prompts are presented to the user when SCOPY
  290.           encounters situations where additional information is
  291.           required.  Of course the user is prompted for a REMARK
  292.           when /R is supplied and a SCOPY file is being created.
  293.           This prompt is always presented before any others so that
  294.           the REMARK can be redirected from the command line or
  295.           from a REXX procedure.   If the /O switch is not
  296.           specified and the destination file exists or the
  297.           destination diskette contains files the user is asked
  298.           permission to overwrite the target.  In the case of a
  299.           diskette, selecting "d" will display a listing of the
  300.           first ten entries in the root directory of the diskette
  301.           and again request permission to overwrite.  When /N is
  302.           specified and the diskette format does not match that
  303.           required by the source file the user is asked if the
  304.           diskette data should be written anyway.  See the 'N' and
  305.           'F' switch description above for more information on
  306.           writing to an unmatched diskette without format.
  307.  
  308. Problems: No one likes bugs, however in a program as complex as
  309.           SCOPY they are bound to exist.  No known bugs currently
  310.           exist in SCOPY.  The 2.88 Meg diskette functions have not
  311.           been tested since we have no access to a 2.88 Meg drive.
  312.           The information for 2.88 Meg diskettes has been gathered
  313.           from reliable sources and should function correctly.  We
  314.           would appreciate any feedback on how well (or how poorly)
  315.           SCOPY works with 2.88 Meg diskette drives.  Any reports
  316.           of any problems with any part of SCOPY will be greatly
  317.           appreciated.  Bug reports are accepted from anyone,
  318.           registered or not, no questions asked.  REPORT THE
  319.           BUGS... THEY WILL GET FIXED!
  320.  
  321.           Address correspondence to:
  322.  
  323.                C.E.Gaumer Software
  324.                P.O. Box 383
  325.                Laurys Station, PA 18059-0383
  326.  
  327. Registration:
  328.           SCOPY is NOT public domain software.  It is copyrighted
  329.           software and all rights are reserved by C.E.Gaumer
  330.           Software.  SCOPY is distributed as shareware which means:
  331.           You are granted permission to use the software for
  332.           personal use for a trial period of 30 days.  Continued
  333.           use beyond the trial period by a private individual or
  334.           ANY use in a business, institutional or governmental
  335.           agency requires registration.  Single user registration
  336.           is $20.00 U.S. for either the DOS or OS/2 verion or
  337.           $25.00 for both. Contact the author at the address above
  338.           for site license or volume pricing.  See the file
  339.           REGISTER.FRM for a registration form or send payment in
  340.           U.S. funds to the address above including your address,
  341.           preferred diskette format, which operating system you use
  342.           and the version and release date of SCOPY you are
  343.           currently using.  (Displayed when SCOPY is run)
  344.           Registration includes a printed manual and the latest
  345.           version of SCOPY.  (Pennsylvania residents must add 6%
  346.           sales tax)
  347.  
  348.  
  349. Technical Information:
  350.  
  351.           SCOPY was written in C and compiled with IBM C Set/2.
  352.           It takes full advantage of OS/2 2.x multi-threading
  353.           capabilities and 32-bit API.  At some time during the
  354.           execution of SCOPY as many as five threads can be in
  355.           operation.  As strange as it seems, multi-threading is
  356.           not always the best solution to a given situation.  For
  357.           instance, SCOPY does not write data to the SCOPY file
  358.           while it performs other functions.  Although it easily
  359.           could (and during testing early unreleased versions did)
  360.           we found that the few seconds it takes to write the file
  361.           after other processing is complete is a small price to
  362.           pay for having the hard drive totally available to other
  363.           processes when SCOPY is switched to the background.
  364.           Writing the file after other processing is complete also
  365.           tremendously speeds up execution when the source is a
  366.           diskette and the destination SCOPY file is on another
  367.           diskette drive. (maybe some day someone will actually
  368.           need to write the SCOPY file directly to diskette).
  369.                We have noted that OS/2 doesn't seem to like
  370.           accessing both floppy drives simultaneously if one of
  371.           them is involved in a format operation.
  372.                We have also used SCOPY as a data recovery tool.  By
  373.           using SCOPY to read a diskette with a defective sector
  374.           and then writing the data back to a good diskette, read
  375.           errors which stop many programs will be eliminated.
  376.           While the data from the defective sector will be replaced
  377.           with zeros, in many cases the original program can read
  378.           the file with the loss of a small amount of data instead
  379.           of the loss of the entire file.
  380.                One of the main criteria during the development of
  381.           SCOPY for OS/2 was complete compatibility of files with
  382.           the DOS version.  At the present time the DOS and OS/2
  383.           version data files are 100% compatible, except that the
  384.           DOS version does not support 2.88Meg diskettes.  SCOPY
  385.           files written by SCOPY for DOS can be read by SCOPY for
  386.           OS/2 and vice versa.  Since the DOS version presently has
  387.           no '/T' switch it cannot read UNIX or MAC diskettes,
  388.           however, the DOS version can write UNIX or MAC diskettes
  389.           from SCOPY files created with the OS/2 version of SCOPY.
  390.           It should be noted that earlier releases of the DOS
  391.           version (through 2.02) had a severe speed problem writing
  392.           diskettes on some 386 and 486 systems.  This problem does
  393.           not affect the OS/2 version.  A new version of the DOS
  394.           SCOPY is being released at this time to overcome the
  395.           speed problem mentioned above.  The new DOS version is
  396.           2.03.  Because of the limits of the operating system, the
  397.           error checking and available features in the DOS version
  398.           will never reach the level of the OS/2 version.
  399.  
  400.  
  401.                Note that diskettes created with SCOPY are EXACT
  402.           duplicates of the original diskette.  DISKCOPY from DOS
  403.           4.0 and above, OS/2 DOS and OS/2 does not make an exact
  404.           copy of the original diskette.  DISKCOPY assigns a new
  405.           volume serial number to the new diskette.  DISKCOMP
  406.           ignores the serial number during its compare.  This means
  407.           that that two diskettes that compare as identical with
  408.           DISKCOMP may create SCOPY files that do not match.  Also,
  409.           since information about the SCOPY program that created a
  410.           SCOPY file is included in the SCOPY file header for
  411.           reference, SCOPY files created by different versions of
  412.           SCOPY from the same diskette will show mismatches if the
  413.           files are compared.
  414.                We suggest using the /V switch when creating
  415.           diskettes.  Although this takes longer, we have
  416.           experienced a few cases where SCOPY did not report errors
  417.           during the diskette write that were discovered during the
  418.           diskette verify.  When writing to the diskette SCOPY can
  419.           only report errors to the user if the errors are reported
  420.           to SCOPY by the operating system.  On rare occasions the
  421.           diskette write returns no error when the sector written
  422.           is actually unreadable.  These errors will be found by
  423.           the verify routines.  Also, be aware that SCOPY is a pure
  424.           copy of the original diskette at the sector level.  This
  425.           means that no relocation of data is possible, even if the
  426.           target diskette has defective sectors.  If the target
  427.           diskette has any bad sectors the SCOPY operation will
  428.           error.
  429.  
  430.  
  431.  
  432.                       Registration form for SCOPY
  433.  
  434.                            LIMIT OF LIABILITY
  435.  
  436.         SCOPY is distributed as is.  The author disclaims all warranties,
  437.         expressed or implied.  The author will assume no liability for
  438.         damages either from the direct use of this product or as a
  439.         consequence of the use of this product.
  440.  
  441.  
  442.              Name:  ___________________________________________________
  443.  
  444.           Company:  ___________________________________________________
  445.  
  446.           Address:  ___________________________________________________
  447.  
  448.  City, State, Zip:  ___________________________________________________
  449.  
  450.           Country:  ___________________________________________________
  451.  
  452.     Daytime Phone:  _________________  Evening Phone: _________________
  453.  
  454.         Signature:  ________________________________ Date:_____________
  455.  
  456. Current Version of                   Current Version of
  457.        OS/2 SCOPY:  ______________           DOS SCOPY:  ______________
  458.  
  459.     Diskette Size
  460.       and Product:  3.5(OS/2)___ 5.25(OS/2)___ 3.5(DOS)___ 5.25(DOS)___
  461.  
  462. If registering more than five users write for volume discounts!
  463.  
  464. Number of Individual Users(DOS SCOPY) :________  X $20.00 =  $_________
  465.  
  466. Number of Individual Users(OS/2 SCOPY):________  X $20.00 =  $_________
  467.  
  468. Number of Individual Users(BOTH SCOPY):________  X $25.00 =  $_________
  469.  
  470.                     Pennsylvania residents add 6% sales Tax  $_________
  471.  
  472.                                              Total Enclosed  $_________
  473.  
  474.         Payment must be in U.S. funds payable to: C.E.Gaumer Software
  475.  
  476.         Send to:        C.E.Gaumer Software
  477.                         P.O.Box 383
  478.                         Laurys Station, PA 18059-0383
  479.  
  480.  
  481. *****************BUG REPORT TO:*******************************************
  482.  
  483. For product defect report and responce please send e-mail to:
  484.  
  485.                                       John Heater
  486.                                       Private Netmail Fidonet:
  487.                                       1:2607/112
  488.                                       Or on the OS/2 Product Support Echo
  489.                                       at the OS/2 Shareware BBS..
  490.  
  491.  
  492.  
  493.