Split.exe

Name

Split.exe - Split a file into multiple files

Synopsis

Split.exe [-v | -q | -d] [-s <Value>] [-p <OutputDir>] [-o <FirstFile>] [-t <SecondFile>] -f <InputFile>
Split.exe -h
Split.exe --version

Description

SplitFile creates two Binary files either in the same directory as the current working directory or in the specified directory. The input file will not be changed by the split. Two Binary files will be created in either the same directory as the current working directory, or, if the either of the output files contain a path, then in the URI is used, based on the output directory, if specified by "-p", "--prefix" option.

When the-o or -t options are not specified, then the non-specified split filenames use the filenames of the input file along with a suffix, formatted as: filename.ext.1 and/or filename.ext.2.

When reading the input filename, if the end of file is reached before the number of bytes has been reached, the first file will be an exact copy of the input file, and the second file is created with zero length.

Options

If no options are specified, tool prints usage.

Split
-f, --filename inputFile to split
-s, --split VALUE the number of bytes in the first file
[-p, --prefix OutputDir]
[-o, --firstfile Filename1]
[-t, --secondfile Filename2]
[-v, --verbose]
[--version]
[-q, --quiet disable all messages except fatal errors]
[-d, --debug[#]
[-h, --help]

Status codes returned

Return Code

Description

0

The action was completed as requested.

Nonzero

The action failed.

Example

  1. tool_setup.bat file will be split into two files tool_setup.bat1 and tool_setup.bat2. As no "-s" was specified, tool_setup.bat1 will have the size of the input file while tool_setup.bat2 will have size zero.

    c:/Tools/Split.exe -f tool_setup.bat
  2. tool_setup.bat file will be split into two files tool_setup1 and tool_setup2. As no "-s" was specified, tool_setup1 will have the size of the input file while tool_setup2 will have size zero.

    c:/Tools/Split.exe -f tool_setup.bat -o tool_setup1 -t tool_setup2
  3. tool_setup.bat file will be split into two files tool_setup1 and tool_setup2. Now "-s 5k" specified and tool_setup.bat is not as large as 5k, so tool_setup1 will have size of the input file while tool_setup2 will have size zero.

    c:/Tools/Split.exe -f tool_setup.bat -s 5k -o tool_setup1 -t tool_setup2
  4. tool_setup.bat file will be split into two files tool_setup1 and tool_setup2. Now "-s 4k" specified and tool_setup.bat is 4.9k, tool_setup1 will have the size of 4k and tool_setup2 will have size 0.5k. The output files are both preceded with a directory and "-p c:/" is specified, so the "Test" and "Test1" directories will be created under c:/ to contain tool_setup1 and tool_setup2 separately.

    c:/Tools/Split.exe -f tool_setup.bat -s 4k -p c:/ -o Test/tool_setup1 -t Test1/tool_setup2

Bugs

No known issues

Report bugs to [email protected]

Files

None.

See also

None.

License

Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at:

http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.