"FOR" command from within a DOS batch file

From: JohnNews (Johncarryl@attbi.com)
Date: 11/02/02


From: "JohnNews" <Johncarryl@attbi.com>
Date: Sat, 02 Nov 2002 22:09:43 GMT

Folks:

I have a text file (names.txt) with a vertical listing of the names of the
computers on my network. For example:
* PC1
* PC2
* ......
* PCn

I want to run the FOR command (within a DOS Batch file) and have each
computer name be selected once. After the selection of each name, I want to
run DUMPEL.EXE (a resource kit utility) and have the results of DUMPEL
dumped into some other text file (OUTPUT.txt) or maybe a spread***
(OUTPUT.xls).

I know that the syntax of the FOR is "FOR %%variable in (set) DO command"
I am having some trouble with the solution to this problem.

Thanks in advance
John.


Quantcast