Piping to DIR - TechRepublic
Question
February 4, 2010 at 08:12 PM
dogknees

Piping to DIR

by dogknees . Updated 16 years, 5 months ago

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

This discussion is locked

All Comments