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
add in text string in a text string from a ref.txt
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Re: add in text string in a text string from a ref.txt
Code: Select all
for /f "usebackq delims=" %%a in ("c:\path to file\ref.txt") do echo %%a