VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Hi

    and however.

    Code:
    for %%F in ("%cd%\audio.aac") do set "file_size=%%~zF"
    please how can get the value in MB (and not in bytes)?

    and also rounding down

    for example:
    if %file_size% is

    Code:
    50722842
    the final result should be

    Code:
    50
    thanks
    Last edited by marcorocchini; 6th Feb 2023 at 11:33.
    Quote Quote  
  2. Code:
    set /a file_size=%file_size%/1024/1024
    echo %file_size%
    Quote Quote  
  3. Divide by 1000000 (MB) or 1,048,576 (MiB, 1024x1024).
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!