August 9th, 2012, 05:41 AM
Batch extract contents of folder in .tgz files
I'd like to extract lots of .tgz files, well a particular folder inside the tgz into folder (overwriting files if the source is newer than target). Is there a command I can use, or a program that will do this efficiently?
August 9th, 2012, 07:03 AM
Use a for loop
Say something like
for %i in ( *.tgz ) do echo %i
If you know what command (in this example echo) you want to apply to one file, then this will efficiently apply the same thing to all tgz files.
August 9th, 2012, 09:24 AM
Do you mean I should write a program to do this? I'm not sure how to look inside a tgz file to extract the folder and to set it to only overwrite if newer