+ Reply to Thread
Results 1 to 3 of 3

Thread: Delete smallest file if not smaller then Xpercentage

  1. #1
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    353

    Delete smallest file if not smaller then Xpercentage

    is there a way do make a batch file delete a file if it not smaller then X% of another


    The reason i wan to do this is because i have my batch file trying different kind of combination of delta and rep filter and RZM/7-zip/nanozip compression

    I wish for it to automatically delete files if E.g. RZM is not smaller then 95% of the 7-zip file.

  2. #2
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    1,895
    Example:
    Code:
    set s=%~z1
    set /A ps=%s%*75/100
    echo %~z2 %ps%
    if %~z2 gtr %ps% echo !!!
    just read SET /? , IF /? and FOR /?

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    353
    Thanks alot
    This will surely help making my backups so much more easier
    Last edited by SvenBent; 6th January 2009 at 01:44.

+ Reply to Thread

Similar Threads

  1. -Delete back in srep
    By SvenBent in forum Data Compression
    Replies: 0
    Last Post: 13th December 2009, 22:36
  2. Can't extract file from ARC file.
    By Absurd in forum Data Compression
    Replies: 3
    Last Post: 26th January 2009, 22:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts