On Tue, Jul 8, 2014 at 3:41 AM, Paul Hill <[email protected]> wrote:

> 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.
> ---------------



This will rename files listed in the text file.  You can do whatever else
you want.

http://technet.microsoft.com/en-us/magazine/2007.02.powershell.aspx

Powershell is awesome


-- 
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
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/CAJidMYLJ1FUPU8KpC=2kfoabuul3hfyxzycfqfeyhm49ndv...@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