List Directory's Name & Save Into Text File With Command Prompt (CMD)

Listing Directory's Name & Saving Into Text file (.txt) is very Difficult If we are Using Manual Way.
So Here we are showing you a Fastest way Of searching Directory in Windows.You Don't Have to Browse You just Have to Write Single Line Command Into CMD. And All Directories, Sub Directories, And Files Automatically Saved Into text File.

Here is Not A Rocket Science to do this Tricks, It is Very Simple, Just Follow the Steps.


Step 1


First Of all Open Command Prompt
Press Win + R and Type CMD and Hit Enter


Step 2


You just Have to browse a Directory to Analyze the Sub-directories & Files.Now you have to Specifies Path Of Directory with Below Command

First Hard drive Path,  Write "D: // ANY DRIVE YOU WANT TO ANALYZE "

Then Give Directory's Path, Write "CD + Space +  Name OF Directory /  Folder" 


Specifies Path in cmd
Change Directory -  Specify Path of Directory
  


Step 3


After Mapping To Directory in CMD,write Command to list Directory's name & Save into Text File

"dir *.* /s /b > dirlist.txt"


Commandline to list name in text file
Command Line to Save Directory Name Into Text file


SEARCH FILES WITH EXTENSION 

Searching Files With Extension  is Not Big Deal Is Easy You just have to Write particular Extension after (.)Dot Operator like PDF, EXE , JPEG, Etc.

"dir *.pdf /s /b > dirlist.txt"


search file with extention
Search File with Extension & Save In Text File


Now, Here All is done, Let's Go At dirlist.txt and Open It in Notepad or Notepad++, And Search Your Particular file with Name You will Get Full path of It. If You have any Question Regarding This Post Then Post in Comment box.




Previous
Next Post »