Store all file names automatically into single text file


Hello friends, You may face some situation where you need all the file names from a large folder which contains hundreds and even thousands of files. If you are worried about manually copying each file, here I came with a simple solution for you. Just follow the steps.

Store all file names automatically into txt file
Store all file names automatically into text file

Steps you have to perform
Here I have created a folder with name "test" containing 20 other txt files whose names I want to store in another file. So follow these steps:

1. Go to the directory where the files are placed, in my case it's "test" folder.
Store all file names automatically into text file

2. Hold "Shift" key and right click anywhere on blank screen, select "Open command prompt here".
Store all file names automatically into text file


3. Enter the command as below,
dir /b /o:n >filenames.txt
    - Replace filenames.txt with any name you want as output file.

Store all file names automatically into text file
4. Now all file names will be copied into desired text file.

Store all file names automatically into text file

5. If you want to store all file names with their directory links, just enter following command,
dir /b /o:n /s >filenames.txt
Store all file names automatically into text file
6. All file names will be in desired file with their directory links.

Store all file names automatically into text file

Note: You can create the file with any format, such as to create .pdf file with all file names in specific directory, just replace filenames.txt with filenames.pdf


Store all file names automatically into single text fileReviewed by Vinay Vernekar
Rating:5


Link your website with us for free!



author

About Author

I’m Vinay Vernekar , a young Entrepreneur and a Technology blogger, currently living in Kolhapur, Maharashtra, India. Founder and Main author of Fun With Tricks. I am also running web hosting services at Host With Us and King Of Web Host. if you like this article, pin it with social media, subscribe to our newsletter. Follow me on Google Plus, Facebook, Linkedin and Twitter.

Know more about me!

Mail me your quries at admin@funwithtricks.com

Get Free Email Updates to your Inbox!

Post a Comment

You are always welcome to leave valuable feedback!