Page 1 of 1

add in text string in a text string from a ref.txt

Posted: 02 Apr 2010 07:10
by jamesfui
hi everyone,
i like to add in text string in another text string from a ref.txt!!
for example,

ref.txt
-----------content--------------
efgh.bmp
ijkl.pdf
...etc

-----------end content----------



copy.bat
---------------code start----------------
@echo off
for /f %%a in (abcd.jpg efgh.bmp ijkl.pdf[/b]) <- insert it here!!!

---------------code end-----------------

is it possible to do that??
or either way, read all the contents from ref.txt & insert it as above!!

thanks :D

Re: add in text string in a text string from a ref.txt

Posted: 05 Apr 2010 09:44
by avery_larry

Code: Select all

for /f "usebackq delims=" %%a in ("c:\path to file\ref.txt") do echo %%a