I am trying to output the contents of a text file to another file whilst putting a coomand in fornt.
I have a text file called test.txt which contains file names and locations of all files with the attribute of A, it is desplayed like this
c:\program files\test folder\test.bat
when I use the for command as below it seems to chop of some of the words in the line, so for example with the word hello inserted before the file names this is how the 2 would come out
here is what i am using
for /f %I in (c:\test.txt) do @echo hello %I >>c:\test2.txt
I am a little new to this and have gone by what i understand to date so could anyone please explain their answer clearly so I can make head and tail of it