• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Need help with Command Prompt.


OSNN Addict
Im trying to create a txt file with the list of folders in a directory in the format:


I have managed this before but I have forgotten the commands and on the Microsoft site, I cant find the commands to remove the date and format it how I want on their either anymore.

Can anyone help?

I got as far as:

dir >a.txt /b

but that just shows [level1]. Need it to show level2 as well.

EDIT - I need to filter out all folders but ones with 2006 in the name.

[level1]/2006 [level2]
Last edited:


OSNN Addict
madmatt said:
To make a list of files within a directory
run command
cd <dir>
dir > file.txt
Ahhhhhh,just worked that one out.

the_tazinator said:
Open a DOS prompt and type "tree" and see if that gives you want you are looking for.
Oooooh, that might come in handy but was not what I was looking for.

Thanks anyway.

How do I filter out folders? Say, folders are named 2000, 2001, 2002, 2003, 2004, how can I filter to only show folders with the date of 2002?

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member