Name
 Split.exe
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.
-f, --filename Filename			
Input file specified by Filename
-s, --split VALUE				
The number of bytes in the first file.  
The Split Occurs at the AFTER VALUE BYTES from the start of the file.
Value can be integer, hex address, or integer-letter, such as 1K, where:
K=1024Bytes, M=1024K, G=1024M
-p, --prefix OutputDir				
Output directory
-o, --firstfile Filename1
	First of the Split Files.
-t, --secondfile Filename2
	Second of the Split Files.
--version
	Print version and copyright of this program and exit
-v, --verbose
Enable verbose output with informational messages printed. This is a count value. Specifying –vv will increase the verbosity level.
-q, --quiet
	Disable all messages except FATAL ERRORS
-d, --debug [#]
	Enable debug messages, at level #
-h, --help
	Print copyright, version and usage of this program and exit
Status codes returned
0	The action was completed as requested.	
Nonzero	The action failed.	
Example
1. c:\Tools\Split.exe -f tool_setup.bat
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.
2. c:\Tools\Split.exe -f tool_setup.bat  -o tool_setup1 -t tool_setup2
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.
3. c:\Tools\Split.exe -f tool_setup.bat  -s 5k -o tool_setup1 -t tool_setup2
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.
4. c:\Tools\Split.exe -f tool_setup.bat -s 4k -p c:\ -o Test/tool_setup1 -t Test1/tool_setup2
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.
Bugs
No known issues
Files 
None.
See also
 None.
License
Copyright (c) 1999 - 2011, 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.