Question Locked

Piping to DIR

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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 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

1 reply

This discussion is closed to new replies.