Piping to DIR

By dogknees ·
I'm sure this should be simple, but I can't seem to get it.

I have a folder name in a text file. I wish to get dir to use the folder name from the text file and write the contents to another file.

Like so....

dir <dirspec.txt >diroutput.txt (there are redirects in this line, but they won't display here.)

For some reason it just gives the content of the folder I'm in when running it. I've checked all the documentation I can find and none of it suggests that this can't be done or gives an example of piping/re-directing into DIR.


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums