Batch File writes down folder names.

February 28, 2011 at 06:23:02
Specs: Windows 7
I dont know if this is simple or hard but im hoping someone will help me.
I want to get a text file with all the folder names on it.
EX: I have a folder with two folders in it. theyre called folder 1 and folder 2
Is there some bat code that could make it so it makes a .txt file and in it it reads
"folder 1 folder 2'

See More: Batch File writes down folder names.

Report •

#1
February 28, 2011 at 06:33:00
Just the following command. Remove /S if you do not want to list subfolders.

dir /S /B /AD "Folder_To_Be_Listed" > list.txt


Report •

#2
February 28, 2011 at 08:05:30
Thanks so much :D

Report •
Related Solutions


Ask Question