Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a directory with 10 *.xml files. I need to read all the files into a string. This should be the output:
a.xml, b.xml, c.xml
This is what I have done on 2k and it works but I am unable to do the same in NT:cd C:\
dir *.xml /b > xmlDir.txt
SET string1=
for /F "tokens=1" %%i in (xmlDir.txt) do SET string1=%%i, !string1!
echo %string1%

Try asking on news:alt.msdos.batch.nt
Yoy may access that newsgroup on the following URL:
http://groups.google.com/groups?hl=pt&group=alt.msdos.batch.nt
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com
www.batch.hpg.com.br

![]() |
Dos HELP
|
Batch File Help
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |