dubasdey / File-Splitter

File splitter tool. Split files by size or number of lines.
GNU General Public License v3.0
82 stars 34 forks source link
c-sharp split split-files splitter tool windows

File-Splitter


SourceForge LGPLv3 Build Status

Information


A Windows and Console based utility to split large files into smaller parts.

Both the Windows and console versions share the same core library of code. Both versions are independent of each other (ie the Window version does not to gather all the parameters and then pass them to the batch program).

The split files retain the original extension if not custom format is used.
The current part number and the total partnumbers are inserted in the format "_XX(YY)", where XX is the current part number, and YY is the total number of parts. This format can be changed by parameter.

example: splitting console.log into 3 parts generates

console_1(3).log
console_2(3).log
console_3(3).log

Installation


1.- Requirements


.NET Framework 3.5 or newer version is required to execute this tool if is not preinstalled with your OS

Windows 7, 8 and 10 contains a valid .NET Framework already installed. For previous Windows releases please go to microsoft update site and installa a valid .NET Framework

2.- Download


Download the last release from GitHub Relases or from SourceForge.

SourceForge downloads may not be up-to-date with the latest version of GitHub.

3.- Install


This tool only required to download and unzip the content to use the executable inside. No installer is provided

Languages


The graphical interface uses the user desktop language if it is available.

The current available languages are:

How To Use


Split

Command line usage:

fsplit -split <size> <unit> <filePath> [-d] [-f <format>] [-df <folder>] [-lf <file>]"

Parameters:

Example:

fSplit -split 10230 kb c:\console\console.log   

WARNING: Cutting by file size currently cuts lines in half. To keep lines together use the option to split by line numbers, eg:

fSplit -split 100000 l c:\console\console.log   

Join

It's possible to merge again the files using the command line with the "copy" command
For example if you have splitted a text file into two parts "p1.txt" and "p2.txt" with "copy /A p1.txt+p2.txt all.txt" it's possible to merge p1 and p2 in a new file called all.txt
If the files are ASCII use /A flag and if the files are binary use the /B flag to ensure that the content is correctly joined.
Take careful to put all files in the correct order.

Donate


Buy me a coffe to help me continue supporting this project. Buy me a coffe