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