Discussion Locked

Printing Directories and Files

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

I had read a few years back of a way to print a directory/file listing of explorer. If anyone has a script or knows of how to print a listing of directories and files, please let me know.

Sean

14 replies

by 4u21der

Try this:

dir *.* /s > c:\sysdir.txt

Make sure you run this command at the root (c:) the ' /s ' tells it to look through all subdirectories, the ' > ' tells it to output the results and ' c:\sysdir.txt ' is the file it will output the results to. You can also substitute the ' c:\sysdir.txt ' option with your printers port (LPT1,...). Although you will get better formatting by printing it from a text editor.

Hope this helps.

Good Luck!

by don christner

Sean,
To send the directory and file listing to a file called test.txt, go to a DOS prompt and type dir *.* >c:\test.txt then you can edit and print the file. If you just want to print use dir *.* >prn (or >lpt1, etc)

Don

by sdbytnar

I'm looking for a specific layout to the output:
Directory
Directory
File
File
File

Similiar to how Explorer would display the information. So far I've received only DOS style output. Thanks.

by gradandy

1. Obtain with Windows Explorer the image of the folder you want.
2. Press Alt+PrintScreen
3. Open Paint (or Photo Editor)
4. Edit, then Paste
5. You have now an image of your screen, which you can print, like an ordinary .bmp file

by gradandy

Thanks for the rejection. You are such a great specialist, why do you post questions anyway?

by sdbytnar

First I never claimed to be a specialist and two I was asking for a script or program not an alt+printscreen solution.

This discussion is closed to new replies.