Menu

7za // adding files with different path/filename using a file list.

foxpat
2015-07-28
2015-07-29
  • foxpat

    foxpat - 2015-07-28

    Hi Igor,
    I'm using 7za.exe; I'd need to add files from a "list file" but injecting them in the 7z with different directory/filename.

    i.e. my file list could look like

    ./dir_1a/filename_a    /dir_2a/dir_3a/filename_aa
    ./dir_1b/filename_b    /dir_2b/filename_bb
    

    etc

    where the first column represent the file before compression on my disk and the second column would represent the file with its new associated directory structure and filename when compressed within the 7z file.

    I remember doing something similar with makecab.exe and its ddf text files time ago.
    How can I do this with 7za?

    Thanks

    BTW Thanks Igor for your new Beta!

     
  • Igor Pavlov

    Igor Pavlov - 2015-07-29

    Now it's possible only if you add one file:

    7z a a.7z -sidir_2a/dir_3a/filename_aa <dir_1a/filename_a
    
     
  • foxpat

    foxpat - 2015-07-29

    It's not the best option but I can use a bat with the stdin trick you just showed me.
    I really miss makecab scripting capabilities; probably some day you can add something like this.
    Thanks Igor.

     

Log in to post a comment.