This PowerShell script takes a large file and breaks it down into smaller pieces, each being under 4GB. It adds a number to each split file’s name to keep everything organized. The script is handy when you need to deal with large files that exceed size limits imposed by filesystems or certain software.
- Splits files into parts that are under 4GB each.
- Automatically numbers each split file so they’re easy to find and follow.
- Works efficiently on large datasets.
- Windows with PowerShell (version 5.1 or later).
- You need enough disk space to store the split files.
- Make sure you have read and write permissions for the file you’re splitting and the folder you're saving to.
- The script reads the input file piece by piece.
- It writes each piece to a new file, making sure no file exceeds 4GB.
- The output files will be named like this:
originalfilename_part1,originalfilename_part2, and so on.
-
Download the script or clone the repository.
-
Open PowerShell and navigate to where the script is located.
-
Use this syntax to run the script:
.\BiggieSmallfiles.ps1.ps1
The script will produce files named like this:
originalfilename_part1.ext originalfilename_part2.ext ...
If something goes wrong (like the file can’t be found or there’s not enough space), the script will throw an error message.
Make sure the file you want to split is accessible and that there’s enough space where you're saving the split files.
This script is licensed under the MIT License. See the LICENSE file for more details. Contributing
If you’ve got ideas on how to improve this script or notice a bug, feel free to submit an issue or open a pull request.
