|
#1
|
|||
|
|||
|
Split a file with bat
Hello,
I wanted to ask for advice on a command in bat. If I have a compressed folder that weighs 500mb But when I start compressing I wanted to create 5 files from 100mb (data1.bin - data2.bin etc.) Instead of a single file (data1.bin) that weighs 500mb there is a command to use in cmd accompanied by, I assume, split.exe to do this? I know there are utilities like ultrarc that do this but I'd like to know if you can do with the bat file. Thank you and good day! |
| Sponsored Links |
|
#2
|
||||
|
||||
|
split.exe
split Code:
@echo off
title Split
rem "Number 3 means 3mb"
for /r . %%T IN ("dat_0*.bin") do (
split s "%%T" 50 "%%~nT.part*"
cls
)
del dat_0*.bin
rem --------------- drag and drop with
rem split s "%~nx1" 3
rem del "%~nx1"
Code:
@echo off
title merge
for /r . %%T IN ("dat_0*.part1") do (
split m "%%T" "%%~nT.bin"
cls
)
del dat_0*.part*
|
|
#3
|
|||
|
|||
|
Thank you very much Chrono Cross, but it was not what I was looking for.
For example: I'm compressing a game of 700mb. During compression I would create 10 files to 70MB to each one (data1.bin - data2.bin - data3.bin etc.). Basically a command to add to msc+srep+lzma to create, instead of a single compressed file, some file from 70MB. I hope I explained a bit better. Thanks for your help! |
|
#4
|
||||
|
||||
|
Freearc not have multi volumen. This is the only way for now. Razor its working on this solution. You can use felice tool or use 7z.
|
|
#5
|
|||
|
|||
|
I understand, FreeArc not have multi volume.
Thanks for the help! Hello. |
|
#6
|
||||
|
||||
|
this is an experimental batch to split folder by size and pack with arc.exe.
default is -m0 for test. ( felice tool is the best way for split and compress folders.)
__________________
-the science of the useless- |
| The Following 3 Users Say Thank You to gozarck For This Useful Post: | ||
|
#7
|
||||
|
||||
|
...@gozarck ...In fact it is the same concept used in the utility "M&S Kompressor" and I think also in "UltraARC" by Razor.
If you want to split the archive already created in exact portions maintaining the same extension of the archives, with the possibility of changing file extension by joining the archives you can use this experimental. The only downside for extracting using an installer must first join the splitted archives, and then install, and therefore requires a double size of the size of the extracted files to a temporary folder.
__________________
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ « I Mediocri Imitano, I Geni Copiano, Dio Crea & Distrugge » (Io Ridefinisco & Perfeziono le Loro Opere Rendendole Uniche) ![]() ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ « Mediocrities Imitate, Genius Copy, God Creates & Destroys » (I Reconsider & Improve Their Works, Rending Them One And Only)
Last edited by felice2011; 12-05-2016 at 12:18. Reason: Removed for Update |
|
#8
|
||||
|
||||
|
or use UltraARC
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Split Program | Carldric Clement | Conversion Tutorials | 8 | 14-12-2014 12:23 |
| Flat Out Protection | t.foster73 | PC Games | 59 | 26-11-2004 01:39 |
| How to split an AVI file | scooby3903 | CD/DVD Copy Protections & Utilities | 2 | 09-11-2002 11:03 |
| cd burner help | snatchcrash | CD/DVD-Writers | 1 | 14-09-2002 04:32 |
| HELP ME PLZ!!!! | Dalvin | DC Games | 0 | 02-01-2001 22:15 |