That's right, the mysterious black window that most new users of windows steer clear of has more utility than you thought it did. (Missed my post on how to remove viruses just by using Command Prompt? Read it here : http://agzuniverse.blogspot.com/2016/05/remove-viruses-and-malware-using.html)
The Command Prompt, hereby referred to as CMD, can do a lot of things that would otherwise require a user to download fancy programs stuffed with adware and additional installations. If the reason why you shy away from CMD is because it is too complicated - you're wrong. Although the higher-level functions require a respectable level of computer knowledge, basic commands in CMD that can carry out tons of useful functions are no-brainers.
And through this post, I'm pointing out such a useful CMD utility : Writing all the names of files in a folder to a text file. This can be incredibly useful for making a quick list of all the files relevant to a project or something else you have on your computer. Making a list of all the files in your movies folder or all the songs in your songs folder can be a great way to back them up or use them to put up a reminder to collect or share some movies or songs.
So, let's get on to the method. First step, of course, is to locate the folder that requires it's filenames written to a text file, and open up command prompt by either typing in 'cmd' in the search box in the start menu (Users of Windows 8 just needs to type in 'cmd' from their home screen), or launching Run, typing in 'cmd' and pressing enter.
Then, change to the local disk drive your folder is located in by typing 'z:' and pressing enter. (Replace z with the local disk drive in your computer.) In my case, I want to change to local disk 'e'.
Then, go to the folder you want to use for this, and copy it's path.
Type in "cd" followed by the path you copied, and press enter. (cd here stands for Change Directory)
NOTE: Ctrl +V doesn't work in command prompt. In order to paste, you have to right click in the window and choose paste.
Now it's time for the command to generate the text file : type in "dir /b > filename.txt" and press enter. You can replace 'filename' with any name you want, but don't forget the '.txt' extension.
And with that, a text file should be generated in the same folder, with the names of all the files in that folder.
Useful, isn't it?
The Command Prompt, hereby referred to as CMD, can do a lot of things that would otherwise require a user to download fancy programs stuffed with adware and additional installations. If the reason why you shy away from CMD is because it is too complicated - you're wrong. Although the higher-level functions require a respectable level of computer knowledge, basic commands in CMD that can carry out tons of useful functions are no-brainers.
And through this post, I'm pointing out such a useful CMD utility : Writing all the names of files in a folder to a text file. This can be incredibly useful for making a quick list of all the files relevant to a project or something else you have on your computer. Making a list of all the files in your movies folder or all the songs in your songs folder can be a great way to back them up or use them to put up a reminder to collect or share some movies or songs.
So, let's get on to the method. First step, of course, is to locate the folder that requires it's filenames written to a text file, and open up command prompt by either typing in 'cmd' in the search box in the start menu (Users of Windows 8 just needs to type in 'cmd' from their home screen), or launching Run, typing in 'cmd' and pressing enter.
Then, change to the local disk drive your folder is located in by typing 'z:' and pressing enter. (Replace z with the local disk drive in your computer.) In my case, I want to change to local disk 'e'.
Then, go to the folder you want to use for this, and copy it's path.
NOTE: Ctrl +V doesn't work in command prompt. In order to paste, you have to right click in the window and choose paste.
And with that, a text file should be generated in the same folder, with the names of all the files in that folder.
Useful, isn't it?