how to only keep modified timestamp when adding a file into a zip file?

Help
Qiang
2013-06-29
2013-06-30
  • Qiang

    Qiang - 2013-06-29

    I have a zip file, and the files compressed in it only show the "modified" timestamp. But when I drag another file from Windows Explorer to drop into the zip file, the zip file shows the added file's "created" and "access" timestamp, which I don't want.

    How to prevent this? My purpose is to let 7-zip only show the added file's last modified timestamp in the compressed zip file.

     
  • Igor Pavlov

    Igor Pavlov - 2013-06-29

    Don't use drag and drop.
    Create archive via "Add to archive" command. And write in "Parameters":
    tc-

    By default 7-Zip uses extra header that stores NTFS timestamps. Default FAT (DOS) timestamps have some disadvantages.

     
  • Qiang

    Qiang - 2013-06-30

    Thanks for your help, Igor.

    Problem is, if I do it this way, the file "bok001.pdg" would be added outside the folder, while I want this file to be added into the folder "第五才子书施耐庵水浒传.04_12687379" inside the zip file. Please look at the attached screenshot.

    How could I achieve this?

     
    Last edit: Qiang 2013-06-30
  • Igor Pavlov

    Igor Pavlov - 2013-06-30

    1) add the file to archive.
    2) open archive and rename that file to folderName\fileName.

     
    • Qiang

      Qiang - 2013-06-30

      Thank you, Igor. This works!

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks