Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
A co-worker once printed me out a list of files in multiple directories from DOS with a command that wrote everything to a word doc. It was something like /s dir >newfile>doc but I can't remember exactly. Can anyone help?

There seem to be so many dos facilities that were never properly documented and disappeared into folklore. e.g.
a) F3 repeats last command or part of it, if overtyping has taken place.b) |MORE invokes paging for dos command when output exceeds one screen
You can re-direct using the > sign following the dos command. e.g.
DIR MIKE /W >PRN outputs contents of directory to printer
DIR MIKE.* /S >FINDFILE.MJN
searches all directories for files named mike, irrespective of extension and stores results in ascii file findfile.mjn.
Good luck - keep us posted.

I think you want to direct the output of dir to the Word path, something like >c:\mydocu~1\Worddocs\dir.doc, dir.doc being the name of the just-created Word document with the dir output. You can then go to Word and open up the document.
You might want to add /-p to the dir command in case the pause switch is already set.

![]() |
![]() |
![]() |

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