Question

I try to to use the following batch command to start for each of the files in a the given folder 7zip and split the files into 250 MB pieces. The files should not be zipped (-mx0) because I want have low disk i/o and just want to synchronize them with amazon s3.

 for /f %%f in ('dir /b c:\Test\') do START 7z.exe a %%f.zip -wc:\Test -oc:\TestOutput\ -v250m -mx0 -t7z

The problem is that the output folder is not the folder I specified, it just takes the 7zip folder. Also, the files that I am trying to split, are at least 2.7 GB big, and the output files are only 3MB...

Any ideas to the code?

Also, does anyone know alternative programs that split files and that I can run via batch file? Or tools that do the entire job for me?

Thanks, Patrick

Was it helpful?

Solution

I have not quite get how it all applies to Amazon S3, but you can use CloudBerry Explorer PRO to break down files into small pieces and automate the transfer to S3.

OTHER TIPS

I use a program called SFK, it's a true "Swiss Army Knife". It has splitting functionality:

http://stahlforce.com/dev/index.php?tool=split

(Just to make it clearer, it's commandline, very easy to use and powerful, but this splitting is not zipped, just as you want. It also joins files later.)

it just takes the 7zip folder.

it puts the splited files in the current working directory

7zip folder was probably your current working directory try changing it to your output folder and see if it works

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top