Search a folder with command without knowing the path.

Search a folder with command without knowing the path.

We have a search in Windows Explorer, but there are times when the drive size is huge and search may not be quick due to issues with indexing.

In these cases, we can use command prompt from every root of drive and search or find for the required folder very quick.

Syntax:
dir /AD /s

Ex: C:\> Dir Apache /AD /s

Note: Make sure you execute the command from root level/top level (Ex: c:\)

/A- Displays files with specified attributes. D-May the attribute be Directories /s – Displays files in specified directory and all subdirectories.

Thanks,
WintelAdmin

Facebook Comments
Print Friendly, PDF & Email

Leave a Reply

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