HanSolo Cambo - 2018-09-25

I have to do this quiet a lot of times : create containers to fill them with a precise amount of MB. Once created and filled, the container will remain the same (I won't have to add more data to it : ever)

In windows explorer (I actually use Dopus), I select the folder I want to put in a container and check its properties. For this example let's say the folder is :

Size : 1,107,899,696 bytes
Size on Disk : 1,107,910,656 bytes

What I tried to do (using : https://whatsabyte.com/P1/byteconverter.htm) is to create a container of the "Size on Disk" info from Windows Explorer. In this example, approximately 1057 MB. But the container wasn't big enough. I made some tests creating containers with 5 extra MB, then 10 extra MB, then more... and finally managed to create a big enough container. But this process is time consuming and really not precise.

So the questions are :

  • How can I determine the size that HAS to be a container to be sure that it'll be big enough to contain the data that it's supposed to contain ?
  • Does this size depends on the kind of files (a few big ones, or tons of small ones) ?
  • In your experience, does adding a certain amount of MB to the container (for example always 15 MB more than the "Size on Disk) always works ?

As I said, I have to create loads on containers, to store loads of data. And I need a way to be sure that when I create the containers, they'll always be big enough.

Thanks in advance for your help ! ;)

Cheers.
Hansolocambo
https://hansolocambo.com/

 

Last edit: HanSolo Cambo 2018-09-25