home *** CD-ROM | disk | FTP | other *** search
-
- SPLIT v 4.5
-
- SPLIT45 divides a file, at specified points, into smaller files.
- Prompts for source filename and output file basename are displayed
- at the start. Output files all have the same basename and a series
- of increasing numeric output file extensions beginning with ".001".
- The source filename may be entered as a command line parameter. Bad
- filename entries result in a prompt for a new filename. Source file
- size is displayed in 128-byte records. You may split files manually
- at specified split points or let "auto-split" determine the split points
- automatically.
-
- In manual splitting values from 0 to the source file size are entered
- for the first and last records of each new output file. A zero as the
- last record aborts the program. Records up to and including the last
- record number are copied to a new file, "outfile.EXT". "EXT" is the
- numeric file extension, which is also entered manually. After each
- group of records is copied, a new extension number, starting point, and
- ending point are requested for another output file. A new file is
- created and the next group of records is copied to it. This repeats
- until the program is ended by entry of an invalid ending point: A
- number less than the starting record, a number outside the number of
- records in the file, or a RETURN causes the rest of the source file to
- be copied to a final file with the last entered extension.
-
- The program's operation is the same for the "auto-split" options, except
- that split points and extension numbers are determined automatically.
- The three "auto-split" options are:
-
- 1) split source file into a specified number of nearly-equal files
- 2) specify the number of 128-byte records in each new file
- 3) specify the number of TEXT lines in each new file.
-
-
- To put the file back together, use PIP:
-
- 1) for text files:
-
- A>PIP NEWFILE.TXT=FILE.001,FLE.002, ...
-
- 2) for binary object files (must use "O" option):
-
- A>PIP NEWFFILE.BIN=FILE.001[O],FILE.002[O], ...
-
- This concatenates the pieces back into a single file.
-
-
- USES: Backing up large files from a hard disk to floppies or
- from double-sided to single-sided disks. The file is
- split where you want and is easily put back together.
-
- ------------------------------------------------------------------------
-
- SPLIT v 4.5 (modified 3/87):
-
- Inspiration for SPLIT45 was SPLITTER, a program by Mike Nault. Because
- the source was unavailable, the program was re-written in Turbo Pascal
- and compiled with the following changes:
-
- 1. End Address set to to run with smallest possible CP/M TPA.
-
- 2. Source and output file drives may be specified allowing the splitting
- of files from one drive to another. The system may be reset after
- each new file is closed, allowing each new file to be written to a
- different separate disk.
-
- 3. Larger 16k or 24k transfer buffer makes copying much faster. A run-
- ning tally is displayed as blocks are copied.
-
- 4. Command parameters allow entry of the source filename on the command
- line when program is called:
-
- A>SPLIT filename
-
- 5. "Auto-split" option either divides source into nearly-equal files,
- files of a specified block length, or text files with a specified
- number of lines each.
-
- 6. During manual splitting BOTH the first and last records in the block
- being copied to the new file are specified. In the event of a crash
- or a partial file being copied to a full disk this allows re-creating
- one or more of your file pieces without splitting the entire source
- file again.
-
- 7. Extensive I/O error-checking is now included. If the disk fills up
- while an output file is being written, the file is closed, partially-
- written but intact, and the program aborts with an error message.
- The same holds true for a full directory. The convention for bad
- filenames is very strict. User areas may NOT be used in filenames
- (no copying between user areas, in other words). All this is an
- effort to avoid disastrous losses of data during file copying. You
- will appreciate these little details when they save you later.
-
- - Mike Dingacci March 20, 1987