Syntax dir "Name of folder to search" /AD /b /s To search a folder for sub-folders, use the following command If you want to narrow the search down by file type, enter the file extension after the period.Įxample dir *arrow*.jpg /s Search for folders The above command will look for all files that match the file name you entered regardless of the file type. To search for files by name, use the following command The /s switch tells the command to include sub-folders, and the /b switch displays files without including metadata making the list easy to read. The above command will look for all PNG files in the current directory and its sub-folders. The following command allows you to search the current folder for all files of a particular type. The quote marks are only necessary if you have folders that have a space in their names in the path that you’re entering but it’s best to make a habit out of adding them To move to a different folder, use the command below. If you want to search other non-window drives, you will need to switch to it first with the following command
#Direct play searching for required files how to#
This is why you need to know how to move Command Prompt to a different location. By default, assuming you’re running it with ordinary user rights, it opens to your user folder and you may, or may not want to search that particular folder. Search for files and folders from Command PromptĬommand Prompt can search a particular drive, or a specific folder for files and folders. There are other apps/utilities that you can install if you find Windows search isn’t as effective or you can search for files and folders from Command Prompt. If you like the feature enough, you can extend the search to other drives on your system. Windows search can find just about anything on your Windows drive.