![]() There are a few tar for windows programs, but I'd stick with 7zip.Īnother idea might be a separate folder that only has links to the files you want, keeping the original folder structure. Using cygwin and then use linux tools like tar should work too, but that's definitely overkill and unnecessary for just a zip program. -tzip – set archive type to a zip file (optional unless using another compression format).7za – the 7-Zip command-line executable.The command line syntax for compressing files and/or directories withįor 7-Zip: 7za a -tzip "C:\Your Folder\yourarchive.zip Folder\yourlistfile.txt" Switch if necessary (see the command line version section in 7-zip.chm The encoding can be changed at the command line using the “-scs” 7-Zip uses UTF-8 encoding for list files by default, but Both the 7-Zip and IZArcĬommand line utilities can use list files for processing files andĭirectories. List files are files that contain a list of one or more files and/orĭirectories separated by new line symbols. This page describes how it should work, uses the list of files feature: Using List files Thanks.ħ-zip should be able to use a list of files to zip, and it can use either it's own. But this is very time consuming, because the real case is the folders level are deep, with hundreds of files, and the files' size are big.ĭo you know any native way, or any external program that allows me to do this? I think something like there's an option at Windows Explorer to zip a folder, but then the zip program presented a folder tree with checkbox in front of every files and folders to mark which files and folders to be included in the resulting zip files, if there any program like that exists. How to do that? All I did until now is by zipping the whole folder of Documents, and then selectively erase it within the zip file. ![]() For example, I have this directory structure: īut I want to preserve the folder structure, so that the zip file will contain file structure like this: Documents\Work\Presentation\Presentation B.pptxĭocuments\Work\Account\Additional Report.xlsxĭocuments\Home\Kid's School\Weekly Newsletter 3.pdfĭocuments\Home\Email Attachment\Stores Weekly Discount.pdfĭocuments\Home\Email Attachment\Teddy's Birthday Photo.jpg
0 Comments
Leave a Reply. |