问题
How can we split file in windows system in command prompt based on size. like linux system we use
"split -b 10M filename.xyz new_filename"
回答1:
You can compress the required file to a zip (or rar) file, setting a maximum file size so that it gets split.
This means that you will always have the program to get the initial file back available.
Some options are:
- HJSplit is a freeware and portable (size == 300 KB), and doesn't have to be installed.
- There is an older, free command-line version of Goetz's File Splitter, it is best if you plan on running batch scripts to split many files.
- 7-Zip is another free open source program that allows you to split (with or without compression) and combine files, either via GUI (right click on the file > Split File... > choose size) or command line.
- Total Commander does that as well (Files > Split File...).
回答2:
If you have "git bash" use the linux split, if don't have it, download it from: https://git-scm.com/
I hope it works for you
来源:https://stackoverflow.com/questions/34609650/how-to-split-file-in-windows-just-like-linux