Menu Close

Copy list of files to a text file

This is for the users of Windows operating system.

It is quite easy to copy the names of a list of files in a folder (regardless of the number of files) to a text file. One may require it for various purposes. Here are the steps involved:

  • Open a command prompt. That is, go to Start, select Run and then type cmd.
  • In the command prompt window, navigate to the directory where your files are stored. It will be easier if you copy the files beforehand to a folder in C Drive.
  • Enter this command: dir > output_file_name (output_file_name is the name of the text file in which you want the list. Eg. dir.txt)
  • Press Enter

This will create a new text file called dir.txt in the same directory as your list of files. You can specify in the path where you want the text file to be stored.

0 Shares

Leave a Reply

Your email address will not be published. Required fields are marked *

Copy link
Powered by Social Snap