Re: List names of directories and subdirectories
- From: Stan Brown <the_stan_brown@xxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 12:56:55 -0400
On 31 Aug 2005 08:14:49 -0700, "Tobi" <tbeetz@xxxxxxxxx> wrote:
>
>I am looking for a simple tool to give me list that would look like if
>the first folder has 3 subfolders, the second one has 1 subfolder and
>the third folder has 2 subfolders ...
>
>
>Foldername1 Subfoldername1
>Foldername1 Subfoldername2
>Foldername1 Subfoldername3
>Foldername2 Subfoldername1
>Foldername3 Subfoldername1
>Foldername3 Subfoldername2
In the command prompt, type this:
dir /b /s /a:d
The /b says to provide just the file name, the /s says to go down
into subdirectories, and the /a:d says to list just directories, not
regular files.
The listing will start from your current directory when you're in
the command prompt, so use CD commands first as necessary. For
instance, if you want to list every directory on your disk then
begin with
cd \
You may want to capture your list to a file, such as c:\mylist.txt:
dir /b /s /a:d >c:\mylist.txt
(You won't see any output at the command prompt, but you can open
the file in Notepad or another editor. Depending on how many
directories you have, it could take a few minutes to write the
file.)
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"What in heaven's name brought you to Casablanca?"
"My health. I came to Casablanca for the waters."
"The waters? What waters? We're in the desert."
"I was misinformed."
.
- Follow-Ups:
- Prev by Date: Re: Event Viewer Problem - Security section
- Next by Date: Re: Windows XP = NT server?
- Previous by thread: Re: Wallpaper and user accounts?
- Next by thread: Re: List names of directories and subdirectories
- Index(es):
Relevant Pages
|
|