The Cellar

The Cellar (http://cellar.org/index.php)
-   Technology (http://cellar.org/forumdisplay.php?f=7)
-   -   Importing file names from a folder into a text file? (http://cellar.org/showthread.php?t=15613)

glatt 10-11-2007 07:51 AM

Importing file names from a folder into a text file?
 
Is there a simple way to take a bunch (around 300) of file names from a folder in Windows XP and dump those names into a single text file so you can edit them? I know you can do them one at a time by copying and pasting, but is there some other way to do all at once?

Is there a way to do this in DOS? It's been too many years since I used DOS and can't remember, but I think there was a way to at least print the file names. Maybe DOS is the best approach?

I really don't want to copy and paste these names individually. Help!

Pie 10-11-2007 09:28 AM

dir > temp.txt

open in editor of your choice.

glatt 10-11-2007 09:42 AM

Thanks!

dar512 10-11-2007 12:18 PM

Add a /b if you only want the filenames

dir /b

glatt 10-11-2007 12:30 PM

That (/b) tip works like a charm. Then with a little "find and replace" action, I was able to get rid of all the path information in the front of the file names. I've now got a nice neat list.

Thanks.

You'd think Windows would make such a simple thing possible though, without resorting to DOS. Not many people out there know DOS.


All times are GMT -5. The time now is 11:43 PM.

Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.