FlyerTalk Forums - View Single Post - Convert Directory of Files into Text File of File Names?
Old Dec 23, 2010 | 9:59 pm
  #5  
LIH Prem
 
2M
All eyes on you!
25 Years on Site
 
Join Date: Nov 2000
Location: Upcountry Maui, HI
Posts: 13,700
Originally Posted by Middle_Seat
My bad: I should have asked for suggestions that did not involve linux or DOS
Open windows explorer, navigate to the directory you want, change the view to a list with or without details, select all, copy, paste into a text window?

what's wrong with using a dos to do it? You could even do it as a batch file. Something like this ...

Code:
@echo off
cd <directory you want>
dir /b
you put that in a batch file, and run it, redirecting the output to the output file you want. You could even make the directory name an argument to the batch file. So if you made the batch file dir-listing.bat, you would run it like ...

Code:
dir-listing.bat > whatever.txt

or

dir-listing.bat dirname ... > whatever.txt
This is similar to KIXman's suggestion, but the link he posted gives details on how to do it.


-David
LIH Prem is offline