Tuesday, 2 July 2013

Step 1:
First of all open command Prompt.
 
Step 2:
Browse to folder which you want to analyze the sub directories and files by using cd commands. For Example if you want to visit d:/pics folder then
try this command.
Type "d:"(this command is changing your selected drive from C to D)
then "cd pics".
 
Capture
Step 3:
 
after navigating to direcotry in command prompt,
Type this command :
dir *.* /s /b > dirlist.txt
and hit enter.
This will list all sub directories and files with their extension.
Note: Type all commands with correct spaces(refer to image above)
If you want to list only pdf files just use this command
dir *.pdf /s /b > dirlist.txt
Likewise, if you want to search only microsoft word files then use this command.
dir *.doc /s /b > dirlist.txt
If you want to search and list only files that has some certain name. For example, Resume.doc then try this command
dir Resume.* /s /b > dirlist.txt
(or)
dir Resume.doc /s /b > dirlist.txt
 
Step 4:
you can find the dirlist.txt file in that directory. i mean it will d:/pics directory.
 
Step 5:
open the text file in notepad or notepad++ ,then search your desired file name or folder(for example "resume"),you will get the full path to the file. This is fastest search than the usual windows search.

0 comments:

Post a Comment