On 8 July 2014 09:19, Paul Newton <[email protected]> wrote:
> Hi all
>
> I have a requirement for a batch file which will execute a single command for 
> every file listed in a text file.  The text file will contain one 
> fully-qualified filename on each line.  I am sure there must be a way but I 
> am afraid that my DOS/BAT knowledge is very rusty indeed.

Hi Paul,

The 'for' command can do this:

for /f %a in (test.txt) do echo %a

Replace 'echo' with your command
If you are using this in a batch file substitute %a with %%a.

-- 
Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CADwx0+LPPC1UfGfSNrzOrO7mrHAHq=gku1d6kjkzhzxg44c...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to