thetoolwiz
2 discussion posts
As a software developer I'd like to be able to search for files created or modified from a specific date, matching particular filename patterns (mainly extensions), in a specific folder and its subfolders, then have the resulting files copied into a zip archive relative to that root folder.
I can do a search and get a list of the files, but there doesn't seem to be a way to get them into a zip file.
This can usually be done by saving the list of files with full pathnames into a (temp) text file, then running the archive utility and passing that file in as a parameter.
Passing a bunch of fully-qualified path names on the command line is limited because Windows limits the length of the command line to 1024 characters or so. (ie., it's rather limited)
(I use 7zip. There may be other ways to do this with it.)
Sep 12, 2017 (modified Sep 12, 2017)
•
#1
Do you want the files to keep their full paths in the zip file? Or just a flat zip file with all of the files at the root, no sub-folders?
thetoolwiz
2 discussion posts
Does it have to be one or the other? Why not make it an option?
What would make the most sense is if the paths are relative to where the first file was found, just like if you zipped the files starting there. Files in other folders (peers or higher) would either have absolute paths or relative paths with ../.. as needed.
Sep 16, 2017 (modified Sep 16, 2017)
•
#3
For the feature request I will note that it should be an option. For now as a workaround, if you're ok with the files being flat in the zip, you can create a new zip file and then drag the results into the zip file.
If we're able to implement it as a proper feature we'll definitely let you know!