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
    856
    Thanks
    45
    Thanked 104 Times in 82 Posts

    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
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    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
    856
    Thanks
    45
    Thanked 104 Times in 82 Posts
    Thanks alot
    This will surely help making my backups so much more easier
    Last edited by SvenBent; 6th January 2009 at 00:44.

Similar Threads

  1. -Delete back in srep
    By SvenBent in forum Data Compression
    Replies: 0
    Last Post: 13th December 2009, 21:36
  2. Can't extract file from ARC file.
    By Absurd in forum Data Compression
    Replies: 3
    Last Post: 26th January 2009, 21: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
  •