TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Gerald Miller
from: Paul Quinn
date: 2004-01-20 19:47:00
subject: looking for ...

Hi! Gerald,

On Sun, 18 Jan 04, you wrote to me:

 GM>>> I have 1,436 ZIP archives to search through trying to see which
 GM>>> archive _may_ contain any one of 14 specific files....
[ ...trim... ]
 GM> I'm going to try:
 GM>   for %%Z in ({at}zip.lst) do C:\Pkw\pkunzip -e %%Z {at}find.lst G:\Tmp
 GM> where ZIP.LST contains the fully qualified pathnames of the 1,436 ZIP
 GM> archives to search through and FIND.LST contains a list of the 14
 GM> files that I'm trying to locate (each list contains one name per 
 GM> line).
 GM> Do you know of a way that I can do multiple FOR commands?  For
 GM> instance, if I could assign a variable to each line in the FIND.LST, 
 GM> then I could redirect the output of PKUNZIP to a file...
 GM>   set find={at}find.lst
 GM>   for %%Z in ({at}zip.lst) do C:\Pkw\pkunzip -e %%Z %find 
 GM> G:\Tmp>>%find%.rpt

I don't normally do multiple FORs.  If you want to nest FORs, then you will
have to employ a second batch CALLed (via Command.Com /C..., I think) from
the FOR, etc, etc.  To assign a line at a time to a variable, I'd use NSET
or LMOD, by Horst Schaeffer.

Alternatively, I can offer a batch tool posted by Michael Marquart in May
'97 that can execute *any* DOS command against a list of files, in a text
file, without the need for anything but DOS (6.22) commands.  Mmm...?  :)

(Re: NC...)
 GM> There was a development team in Germany that were working on the beta
 GM> of Version 5.0, but it never saw a public release (as far as I know) 
 GM> and as hard as I tried, I could never locate it...

I remember playing with a copy, once.  You didn't miss much.  (Does your NC
4.xx thingie have the terminal proggie applet?  Or is that in
5.0?...[shrug])

Cheers,
Paul.

--- Radius/W32 4.010/18.12.03-beta
* Origin: A day for firm decisions! Or is it? (ZMH only) (3:640/384)
SEEN-BY: 633/267 270
@PATH: 640/384 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.