Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"FOR" command from with DOS batch file

0 views
Skip to first unread message

JohnNews

unread,
Nov 2, 2002, 5:04:46 PM11/2/02
to
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 spreadsheet
(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.


0 new messages