home *** CD-ROM | disk | FTP | other *** search
- SPLIT v 4.9x
-
- SPLIT divides a file, at specified points, into smaller files.
- Files may be processed as either binary or text files. Prompts for
- source filename and output file basename are displayed at start.
- Source file size is displayed in bytes. Output files all have the
- same basename and a series of increasing numeric file extensions
- beginning with ".001".
-
- Input and output filenames may be entered on the command line. Bad
- filenames result in a prompt for a new filename. Command line
- format is: SPLIT [fnm1] [fnm2] [opt] where:
-
- "fnm1" is the name of input file to be split, including the
- extension and pathname, where needed.
-
- "fnm2" is the output file basename (no extension), including
- pathname, where needed.
-
- "opt" is the split option. Choices are: (F)iles, (B)ytes,
- (L)ines, or (M)anual.
-
- Simply entering "SPLIT" on the command line results in prompts for
- the above options. The three "split by" options are:
-
- F: Split source into a number of nearly-equal sized new (F)iles,
- B: Specify the number of (B)ytes in each new file, or
- L: Specify the number of text (L)ines in each new file.
-
- New Feature:
- ------------
- M: Copy blocks of bytes (M)anually from source to output file.
-
- Although not listed in the menu, Version 4.9x now has manual file
- splitting capability. Manual splitting is activated by choosing option
- "M" at the "split by" prompt or placing it in the command line as
- described above. Manual splitting copies a specific block of bytes from
- within the source file into the output file. Starting and ending bytes
- are entered for the block of source file bytes to be copied to the output
- file. Values from zero to source file size are entered as the first and
- last bytes of each new block to be copied to an output file. If the
- second byte number is zero or is lower than the first byte, the program
- aborts. Bytes up to and including the second byte number are copied to
- the new file. The numeric file extension is also entered manually.
-
- After each group of bytes 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 bytes is copied to it. This
- repeats until the end of the source file or the program is ended by entry
- of an ending byte value less than the starting byte. A blank line
- entered for any requested value results in the default for that value.
- Default for file extension is the previous extension number plus one.
- Default for the starting byte is the next byte after the last file split
- left off. Default for the second byte number is the last byte in the
- source file. Be careful! Manual file splitting is for advanced users.
-
-
-
- To put the file back together, use COPY:
-
- 1) For text files, just use the copy command:
-
- >COPY fnm2.* fnm1.all
- or
- >COPY fnm2.001 + fnm2.002 + fnm2.003 fnm1.all
-
- 2) For binary files use the /B switch:
-
- >COPY fnm2.*/b fnm1.all/b
- or
- >COPY fnm2.001/b + fnm2.002/b + fnm2.003/b fnm1.all/b
- (see dos manual for other file concatenation conventions)
-
- This concatenates the pieces back into a single file.
-
-
- USES: Backing up large files from a hard disk to floppies or from
- high-capacity to low-capacity disks. Making smaller text files
- out of larger ones for use with limited capacity editors like
- Sidekick's notepad. The file is split where you want and is
- easily put back together.
-
-
- Other features of version 4.9x SPLIT.EXE :
-
- 1. New feature added: Split files manually with v4.9 and later.
-
- 2. Self-test at startup for damaged or altered program (v4.9c).
-
- 3. Exit to DOS during split operation in order to format a disk,
- change directories, etc. Type "exit" at any filename prompt.
- (This feature is disabled for TEXT file processing).
-
- 4. If the specified input file is not found, SPLIT displays the
- current directory (limited to the first 90 filenames) and
- prompts for a new input filename.
-
- 5. If the destination disk is full, SPLIT adjusts the size of the
- current output file to the number of bytes remaining on the
- destination disk and prompts for a new disk in the output drive.
-
- 6. Binary file splits are incremented and listed in bytes.
- Text file splits are incremented and listed in lines of text.
-
- 7. I/O error handling and vector preservation are improved.
- Current screen colors, text mode, and attributes are preserved.
-
-
- Inspiration for SPLIT was "SPLITTER", a program by Mike Nault.
- Text file splitting is similar to the "CHOP" text file splitter.
- Thanks to Steve Ogden for the file directory and window routines.
-
- - M. Dingacci, 9/17/1989 -