Open the run dialog box by hitting WIN KEY + R

  • Type CMD and enter. This opens the dos window.
  • Now type cd c:\ . This way you will move to C directory ( where all your files are present)
  • Now Type dir /b > alldata.txt .
  • Open the alldata.txt file which is in your C: drive and you will be able to see all data.

Here is the image with a brief explanation of how it works at the end.

how to extract  folders to text file

Brief explanation :

DIR gives you list of all files and folders ( except hidden ) . /B is an option for DIR so that you just get the list of files and no other details. . > Is a way where the out put of DIR is given into another , which here in our case is a file “alldata.txt

Thanks http://www.technospot.net/ for such a good solution.

Advertisements