Dec 122017
Chop big files into smaller ones.
File CHOPFILE.ZIP from The Programmer’s Corner in
Category File Managers
Chop big files into smaller ones.
File Name File Size Zip Size Zip Type
CHOP.EXE 16053 13463 deflated
CHOP.TXT 2085 959 deflated

Download File CHOPFILE.ZIP Here

Contents of the CHOP.TXT file

CHOP.EXE Breaks big files into smaller ones.

This programs works for me, I wrote it.
If you choose to use it, you do so at your own risk.

Syntax: CHOP [filename.ext] [#x] [/s:x]
CHOP takes big files and chops them into smaller files.

Two ways to chop
x is either the number of files to create
or the size (in bytes) you want the files to be.

If you ask for BOTH kinds of chopping,
you will get "number of files" chopping.

Output files are named with their original filename and a numbered extension.
Thus, the command: CHOP filename.txt #3
would produce files filename.0

The maximum number of outputted files is 999, mainly because I didn't want to
get into some scheme where I'd have to start padding zeros in the extension
just to make the filenames unique, i.e. .001, .01, and .1.
I don't think there will be many times you will need to dump more than 1000
files into a directory.

When a file chopped into 'x' number of files, the last file will contain any
remaindered bytes.
For instance, divide a 10-byte file into 3 smaller files and you have a 1 byte
remainder. This byte would make the 3rd file 1 byte larger than the first two

The opposite is true when a file is chopped into files of 'x' size: the last
file will be smaller than the rest if there is a remainder. If you have a
10-byte file and want it chopped into files of 3 bytes each, there will be 3
3-byte files and a 1-byte remainder file.

The reason for these things is when you choose to chop a file into a number of
other files, the number of files is assumed to be the primary concern.
Likewise for file size, if you specify a file size for the outputted files,
it is assumed you would prefer to have as many files match that size exactly
and the remaining bytes dumped into another file, rather than have file sizes
that are only CLOSE to what you asked for.

 December 12, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>