Computing.Net > Forums > Disk Operating System > Directory Print from DOS to Word

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Directory Print from DOS to Word

Reply to Message Icon

Name: Dawn
Date: September 13, 2002 at 11:23:13 Pacific
OS: win2k
CPU/Ram: ?
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Mike Newcomb
Date: September 13, 2002 at 12:29:40 Pacific
Reply:

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.



0

Response Number 2
Name: Renaissance Man
Date: September 14, 2002 at 04:41:11 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Directory Print from DOS to Word

syntax for printing from DOS to a spool www.computing.net/answers/dos/syntax-for-printing-from-dos-to-a-spool-/6377.html

Printing from DOS to WinNT 3.51 www.computing.net/answers/dos/printing-from-dos-to-winnt-351-/1991.html

Network Printing from DOS www.computing.net/answers/dos/network-printing-from-dos/6151.html