TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: How to Print a List of Files (ASAP)! From:"David M. Brown" <dmbrown -at- brown-inc -dot- com> To:TECHWR-L <techwr-l -at- lists -dot- raycomm -dot- com> Date:Tue, 03 Oct 2000 16:31:03 -0700
jwaddell wrote:
>
> You can print a list of files to a file by using the dos command: dir *.*/b
> > file.txt. This will create a list of files in a text file named file.txt
>
> -----Original Message-----
> From: skwpt [mailto:skwpt -at- yahoo -dot- com]
>
> A couple months ago someone wrote brief instructions
> for how to print a list of files (documents in several
> layers of folders---basically a tree). From the DOS
> command prompt, I think.
Since you wanted multiple folders, try this in a DOS window:
TREE /f > filename.txt
This displays the full directory structure (from current directory down).
The /f switch includes filenames in the display.
The only drawback is that--at least in DOS 6.22 (Windows 95)--names are displayed in the "8.3" format, yielding names like "PROGRA~1" for the "Program Files" directory.
--David
=============================
David M. Brown - Brown Inc.
dmbrown -at- brown-inc -dot- com
=============================