Results 1 to 3 of 3

Thread: a small plea for the command line compression developers

  1. #1
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    870
    Thanks
    47
    Thanked 105 Times in 83 Posts

    a small plea for the command line compression developers

    it would be damn nice of the program like rzm and ccm(x) could take another option

    -d Delete original files


    i know its easy to do this by batch , but when handling multithreaded batch doing several layers of compression/filtering files, this simple features requires alot of work to do.

  2. #2
    The Founder encode's Avatar
    Join Date
    May 2006
    Location
    Moscow, Russia
    Posts
    3,979
    Thanks
    376
    Thanked 347 Times in 137 Posts
    Just imagine, some compressor has a bug and some beautiful day it will compress some file incorrectly, and just after that it will remove the original data... Demolition....

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    870
    Thanks
    47
    Thanked 105 Times in 83 Posts
    i see the issue,

    but

    a:
    It clearly states that these a experimental only.

    b:
    Actually i would only need this for decompression.


    its the decompression that i'm using a multithreadet batch for


    the reason i need to delete the files is so that my batch file can see the file is gone and the decompression is finished, and then it can start the next level of decompression/filtering on all the files.


    this is my extract.bat file

    Code:
    @ECHO OFF
    set wait=ping 127.255.255.255 -w 255
    
    
    
    REM ----- HANDLING .RZM FILES -----
    ECHO rzm.exe d %%1 %%1.tmp > DcmpTMP.bat
    ECHO del %%1 >> DcmpTMP.bat
    ECHO exit >> DcmpTMP.bat
    for %%f in (*.rzm) do start DcmpTMP.bat "%%f"
    
    :checkrzm
    %wait% > nul
    if exist *.rzm goto checkrzm
    ren *.tmp *.
    ren *.rzm *.
    del rzm.exe
    
    
    
    REM ----- HANDLING .REP FILES -----
    ECHO rep.exe -d %%1 %%1.tmp > DcmpTMP.bat
    ECHO del %%1 >> DcmpTMP.bat
    ECHO exit >> DcmpTMP.bat
    for %%f in (*.rep) do start DcmpTMP.bat "%%f"
    
    :checkrep
    %wait% > nul
    if exist *.rep goto checkrep
    ren *.tmp *.
    ren *.rep *.
    del rep.exe
    
    
    
    REM ----- HANDLING DELTA FILES -----
    ECHO delta.exe -d %%1 %%1.tmp > DcmpTMP.bat
    ECHO del %%1 >> DcmpTMP.bat
    ECHO exit >> DcmpTMP.bat
    for %%f in (*.del) do start DcmpTMP.bat "%%f"
    
    :checkdelta
    %wait% > nul
    if exist *.del goto checkdelta
    ren *.tmp *.
    ren *.del *.
    del delta.exe
    
    
    
    REM ----- HANDLING .PCF FILES -----
    for %%f in (*.pcf) do Precomp.exe -r %%f
    
    del precomp.exe
    del zlib1.dll
    del packJPG.dll
    
    
    
    REM ----- HANDLING ECM FILES -----
    ECHO unecm.exe %%1 > DcmpTMP.bat
    ECHO del %%1 >> DcmpTMP.bat
    ECHO exit >> DcmpTMP.bat
    for %%f in (*.ecm) do start DcmpTMP.bat "%%f"
    
    :checkecm
    %wait% > nul
    if exist *.ecm goto checkecm
    del unecm.exe
    
    
    
    
    
    key.txt
    
    del DcmpTMP.bat
    del %0
    if i didn't need to delete the file by another command line i would not need to make all these sub batches rutines
    Last edited by SvenBent; 14th June 2008 at 02:56.

Similar Threads

  1. UCLC (Ultimate Command Line Compressors) Benchmarks
    By osmanturan in forum Data Compression
    Replies: 2
    Last Post: 4th September 2015, 11:30
  2. Replies: 39
    Last Post: 10th April 2014, 22:26
  3. compressing a really small 1k .COM file
    By Rugxulo in forum Data Compression
    Replies: 3
    Last Post: 28th November 2009, 00:32
  4. A Small Warning
    By encode in forum The Off-Topic Lounge
    Replies: 1
    Last Post: 30th August 2008, 21:05
  5. DARK - a new BWT-based command-line archiver
    By encode in forum Forum Archive
    Replies: 138
    Last Post: 23rd September 2006, 21:42

Posting Permissions

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