Re: incrementing numbers



On Wed, 12 Mar 2008 13:23:37 -0700, tcdrake wrote:

On Mar 12, 3:04 pm, Ted Davis <tda...@xxxxxxx> wrote:
On Wed, 12 Mar 2008 12:46:29 -0700, tcdrake wrote:

I have run across something else I would like. I only need certain
files unzipped. I know in winzip I can call a list which has all the
files I want to unzip. The command for this is wzunzip.exe -e -s
20080307-5.zip @list.txt c:\test\105. Any chance you can assist in
adding this feature?

Replace
  dir /b *.zip | awk -fscript_file.awk map_file.txt - > }{.cmd in the
batch file with
  awk -fscript_file.awk map_file.txt filelist > }{.cmd

All the DIR command did was to generate a list of all the .zip files -
if you already have a list of files to process, then that's not needed.
 Good thing I wrote that script so it didn't care where its input came
from.

--
T.E.D. (tda...@xxxxxxx)

TED,
Thanks for the quick reply. I didn't make myself clear. You original
script is great and I really do appreciate it. The only change I need is
adding @list.txt to the end of each zip file. So the original code is...

BEGIN{
UnZipCommand1 = "c:\\progra~1\\winzip\\wzunzip.exe -e -s "
UnZipCommand2 = " c:\\test\\"


I need to put in @list.txt after the zip name. So somehow getting to look
like this...

BEGIN{
UnZipCommand1 = "c:\\progra~1\\winzip\\wzunzip.exe -e -s
@list.txt"
UnZipCommand2 = " c:\\test\\"

So the output is 20080311-1.zip @list.txt. This will allow me to only
unzip the files I need out of the zip. Make sense?

The only think that can be unzipped is a zip archive - you want to extract
individual files based on a list.

Change

UnZipCommand2 = " c:\\test\\"

in the script to

UnZipCommand2 = " @list.txt c:\\test\\"

--

T.E.D. (tdavis@xxxxxxx) MST (Missouri University of Science and Technology)
used to be UMR (University of Missouri - Rolla).



.



Relevant Pages


Loading