Question

Locked

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.

Thanks

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums