Computing.Net > Forums > Disk Operating System > DOS program to read a directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS program to read a directory

Reply to Message Icon

Name: shimpa
Date: April 17, 2002 at 21:11:19 Pacific
Comment:

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%



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: April 22, 2002 at 11:46:47 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More


Dos HELP Batch File Help



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS program to read a directory

Help!!! Printing in DOS Program to a Network Printer www.computing.net/answers/dos/help-printing-in-dos-program-to-a-network-printer/2463.html

dos command to read txt /p www.computing.net/answers/dos/dos-command-to-read-txt-p/8632.html

how to create a directory in dos www.computing.net/answers/dos/how-to-create-a-directory-in-dos/11381.html