开发者

7zip, batch file, file splitting, amazon s3

开发者 https://www.devze.com 2022-12-14 14:38 出处:网络
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

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


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.)


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消