• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Program to put folder names into a text file?

Status
Not open for further replies.

spliced

Member
I'm trying to find a way to copy the names of folders into a text file all at once so I don't have to individually go through them all and do it myself. I tried searching but I didn't really know what to search for.
 

aoi tsuki

Member
Open a command window (go to Rum... and type cmd.exe), then type dir /b /ad > whatever.txt. It'll save whatever directory names are in your current directory in a file named whatever.txt. Of course you can replace "whatever" with whatever filename you want.
 

Ecrofirt

Member
Well, you can try DOS.

tree>files.txt
will give you all folders and subfolders. Try tree /a>files.txt if you don't like the formatting
or
dir /b /ad>files.txt
will give you just all the folders in the specified folder.

edit:
Beaten with the second one
 

spliced

Member
Is there a way I can have the text file writen to another directory? I want to copy names of folders on a DVD.

I sure hope that's not what's happening Son of Godzilla. :p
 
Status
Not open for further replies.
Top Bottom