View Single Post
  #7  
Old 07-01-2019, 06:41
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
Is this still batch or powershell?

Something like this:
Set DVD size (type [D5,D9,BD25,...])
If archive X is Y bytes/mb, do DVD size minus archive X size

Example:
Data1a.bin -> 4470mb
Data1b.bin -> 1000mb
Data2a.bin -> Calc [DVD size] minus previous archive size (Data1b.bin) = Data2a.bin size
Data2b.bin -> 3456mb
Data3a.bin -> Calc [DVD size] minus previous archive size (Data2b.bin) = Data3a.bin size
...
..
.
and so on.

I know it's possible to check a file size in batch and powershell. The problem (for me) would be to store the info in a variable, do the math and give the result to the next archive.
__________________
Haters gonna hate

Last edited by KaktoR; 07-01-2019 at 06:46.
Reply With Quote