| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | looking for ... |
Hi! Robert,
On Sun, 25 Jan 04, you wrote to me:
PQ>> I don't normally do multiple FORs. If you want to nest FORs,
PQ>> then you will have to employ a second batch CALLed (via
PQ>> Command.Com /C..., I
RB> I usually CALL the second batch...
I wasn't sure how nested FORs worked and remembered something about
possibly having to do a...
for %%x in (whatever) do CALL %COMSPEC% /C for %%x [whatever]...
as a workaround. I forget the wherewithall as I don't run nested FORs to
begin with. :)
Ahha! Here we go. From Jamie Hermans, posted MArch '95:
-----88-----
* Added on January 03, 1995 *
Normally, FOR-loops cannot be nested. If they could, we could say:
for %%f in (h H /?) do for %%g (// -) do if "%1"==(%%g%%f) goto {at}Help
It *is* possible to nest FOR loops, by using COMMAND /C...
for %%f in (h H /?) do command /c for %%g in (// -) do if
"%1"==(%%g%%f)...
...goto {at}Help
* Steve Reid - Fidonet: 1:153/414
-----88-----
PQ>> think) from the FOR, etc, etc. To assign a line at a time to a
PQ>> variable, I'd use NSET or LMOD, by Horst Schaeffer.
RB> I'd avoid NSET now, because it won't work under recent Windows.
RB> Check out VARSET, which is a work around plus much more.
What if I refuse to run anything later that breaks NSET!?! Jest kiddin'.
:) I have no hardware here capable of running better than Win95C, which
has the last bestest ever DOS, IMHO.
PQ>> Alternatively, I can offer a batch tool posted by Michael
PQ>> Marquart in May '97 that can execute *any* DOS command against a
PQ>> list of files, in
RB> Which one is that? I still have a copy of an early PC-Magazine
RB> utility called APPLY which does this kind of thing, but it's getting
RB> less useful with LFNs and so on.
It's a straight-up batch solution. No EDLIN of QBasic weirdness either.
It was something MM came up with in a moment of pure ingenuity. :) He
turned out something that could apply any DOS command line against a list
of files or directories, contained in a text file listing. I haven't tried
to use it but I'm waiting to hear from Gerry Miller, to see if it fitted
his need.
Cheers,
Paul.
--- Radius/W32 4.010/18.12.03-beta
* Origin: "How do I set my phaser to tickle?" (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™.