Computing.Net > Forums > Disk Operating System > DOS directory printing

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.

DOS directory printing

Reply to Message Icon

Name: Catherine P
Date: November 18, 1999 at 09:54:30 Pacific
Comment:

I would like to know the DOS command to print a directory to a file. I have several thousand files I need to have a hard copy index of, and would like to print to a text file so I can import into Excel or another program.

I know there's a command where I can do a DIR, then extract or something to a *.txt file.

I need to get a listing of files on an old server that's going away 12/31 (NetWare 3.12) so that I can have a checklist of moving the files to my new server, so a quick answer would really be appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: browser
Date: November 18, 1999 at 10:25:57 Pacific
Reply:

You can use the DOS redirection feature.

DIR C:/S >C:\ALLFILES.TXT

DIR C:/S (will list all files and sub-directory files on the C: drive).

> (is the DOS re-direction symbol)

C:\ALLFILES.TXT (will put it in a file named ALLFILES.TXT which is on the C: root directory).

This will take a little while to write the entire file, so be patient and wait 1 or 2 minutes for it to complete. It will be through when you see a new C:\> prompt. It will be a simple ASCII text file.


0

Response Number 2
Name: Catherine P
Date: November 18, 1999 at 12:23:50 Pacific
Reply:

Thank you very much! It worked great. I saved to a text file, then opened in Word, turned it into several tables, cut out the garbage, moved it to Excel, and it's going to work out perfectly for me. Thanks for such a quick response.
Catherine


0

Response Number 3
Name: Mindy
Date: November 20, 1999 at 12:58:11 Pacific
Reply:

I think you can also do this from the directory you want to print:
dir >prn


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


I need the TRICD.SYS cd d... I need a site to download...



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: DOS directory printing

DOS based printing www.computing.net/answers/dos/dos-based-printing/3190.html

DOS Emulation Print Job www.computing.net/answers/dos/dos-emulation-print-job/12085.html

DOS directory with today's date & time www.computing.net/answers/dos/dos-directory-with-todays-date-amp-time/10948.html