====== Windows Explorer File Search ====== ===== Search filters ===== * size (size:) * date modified (datemodified:) * type (type:) * authors (authors:) ===== Search ribbon ===== * switch between current folder or all subfolders * recent searches * save search * advanced options can slow down search results ===== Advanced query syntax ===== * * e.g., *east * finds any string that ends with east, such as "Northeast" and "Southeast" * - e.g., social –security * finds items that contain social, but not security * "" e.g., "social security" * finds items that contain the exact phrase social security * OR e.g., social OR security * finds items that contain social or security * NOT e.g., social NOT security * finds items that contain social, but not security * ! e.g., !Smith * finds all values except "Smith" * .. e.g., 1..10 * finds all values from 1 through 10 * ? e.g., north??st * finds any string that starts with north and ends with st with two characters in between. ===== Examples ===== * ???-??-???-15?-?.psd * finds PSD files for team code 15 * 910*_m.jpg * finds multi-shot JPG images for product code 910 ===== Copy path ===== * ''Shift'' + ''right click'' on one file or multiple files * Copy as path ===== PSD conversion folder locations ===== * Tiffany, Ursula and Jason's desktops * N:\Drop_here_for_PSD_to_JPG * N:\Entities\0-Schools\TEMP_SAVES\1-Working\Drop_here_for_PSD_to_JPG * Z:\___DAM\Product_Images\Licensed_Items\Drop_here_for_PSD_to_JPG ====== Command Prompt File Search ====== ''dir'' command can be used to list the files from command prompt. This article explains the syntax for different usecases. * A simple ''dir'' command without any other arguments lists all the files/subfolders that exist in the current folder.dir * Lists the subfolders/files names in bare format.dir /bThis command prints the file names. No other file meta data like file modified time, file size etc are not displayed. * List the files in the current folder and also the ones in the subfolders recursively.dir /s ===== Using wild cards with dir ===== ''dir'' command accepts wild cards to display information only for the files that match the pattern specified. The below examples illustrate different use cases where we can use these wild cards * List files of certain type or based on extension\\ For example to list all jpeg files in the current folder, we can run the below command.dir *.jpegTo list all excel filesdir *.xlsWe can even specify multiple extension in ''dir'' command to list files of any of the types. To list all files created with Office applications like Word, Excel, Powerpoint etc we can run below command.dir *.docx *.xlsx *.pptx * List files beginning/ending with specific pattern\\ List all files in the current folder whose names begin with ‘Picture-‘dir /S Picture-* ===== List file names based on type ===== ''dir'' command can list the file names and also the subfolders names. We can be selective and say that we want only names of the files to be listed or only the names of the subdirectories to be listed. * List only directoriesdir /A:D * List only filesdir /A:-D ===== Display files based on file attributes ===== We can filter out which files should be listed in the ''dir'' command output based on read-only, system, hidden archive file attributes. * For example, to list read-only files in the current directory, the command is:dir /A:R * Similarly to display hidden filesdir /A:H * For the opposite case of looking for files where an attribute is not set, we can append '-' to the attribute code. For example, to print the file names without archive attribute set, we can use the below command.dir /A:-A * Exclude Read-only files from the listing.dir /A:-R * Exclude hidden files from listing.dir /A:-H * Exclude system files from listing.dir /A:-S ===== Print metadata of files using dir command ===== * Find out who owns a filedir /QExample:c:\>dir /Q 1.txt 05/03/2015 01:12 AM 151,906 BUILTIN\Administrators 1.txtThe above result of ''dir'' indicates that file 1.txt is owned by Administrators group. * Get created time of a filedir /TC * Find last accessed time of a filedir /TA * Find last modified time of a filedir /TW