I tried this..
copy test.zip extract filter somefilespec
..but the whole test archive was extracted to the target folder. I'd like to be able to select specific files/folders. Is it possible to filter when copying from a zip?
Regards, AB
I tried this..
copy test.zip extract filter somefilespec
..but the whole test archive was extracted to the target folder. I'd like to be able to select specific files/folders. Is it possible to filter when copying from a zip?
Regards, AB
You don't need the EXTRACT argument, just use a command like copy c:\test.zip* to d:\blah filter filtername (i.e. just treat the archive like it's a folder).
test.zip contains 3 files.
[ol][li]test.txt[/li][li]test.png[/li][li]test.doc[/li][/ol]
Copy c:\somepath\test.zip* FILTER *.txt copies all three of them.
If I create and save a TextOnly filter, then..
Copy c:\somepath\test.zip* FILTER TextOnly copies just the text file.
According to the help file, I should be able to use a simple filter rather than a saved filter.
[quote]You can also directly specify a simple wildcard pattern
Example: Copy FILTER *.(jpg|png)[/quote]
Regards, AB
Copy c:\somepath\test.zip*.txt should be all you need, I think.