It worked a treat, thanks again
--
Dee
"Dee" wrote:
> thanks, will give it a go
> --
> Dee
>
>
> "T Lavedas" wrote:
>
> > On Apr 22, 7:06 am, Dee <D...@discussions.microsoft.com> wrote:
> > > Hi
> > >
> > > I'm looking for a sample code to add some small amount of repeated data
> > > before and after some names in a text file.
> > >
> > > Example
> > >
> > > the list is
> > >
> > > a
> > > b
> > > c
> > > d
> > >
> > > I want to add
> > >
> > > test a today
> > > test b today
> > > test c today
> > > test d today
> > >
> > > any pointers would be great
> > >
> > > D
> > > --
> > > Dee
> >
> > Try something like ...
> >
> > @echo off
> > if '%1'=='' (echo Input file name missing. & goto :eof)
> > (for /f "delims=" %%a in (%~1) do echo test %%a today) >
> > "%~1.out.txt"
> >
> > This will process the input file into an output file having two
> > additional extensions added to its name, ".out.txt". The input file
> > name is provided on the command line as an input.
> >
> > Type FOR /? at a command prompt for more information on the syntax.
> >
> > Tom Lavedas
> > ***********
> > http://there.is.no.more/tglbatch/
> >