There’s been so many times where I needed to get a list of files that reside within a certain directory. There’s software out there to do it (like DDFilecatcher), but who wants to pay for it? It seems like it would be so simple just to create a little script that’ll take the names of all the files I have in a folder and save it to a .txt file. Well, here’s how you do it.
- Open notepad
- Put this code into the file
dir /b>filelist.txt
- Save it as “filelist.bat”
- Place filelist.bat into the directory you need to get the list from
- Click on filelist.bat from within the folder
- You’ll now have a .txt doc called “filelist.txt”
Simple, right? This has saved me so much time… it’s ridiculous.
No comments:
Post a Comment