• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DOS command question.

Mears

Platinum Member
I'm trying to print a directory listing into a file so I can print out the filenames a directory contains. Any ideas on how to do that?
 
dir c:\windows > c:\file.txt

type dir /? to see options, there's switches for no extended information, recurse subdirectories, etc.
 
C:\>tree /?

Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.

tree /f |more for a paged listing
tree /f >lpt1: for hard copy

The root of the tree will be the current directory or the specified path.


FWIW

Scott
 
Man do I feel like an idiot. I knew the > and < operators worked in *nix, but for some reason I didn't think they worked in DOS. Thanks for all the replies.
 
Back
Top