For your particular search, just replace the words either side of the ‘NOT’ boolean.ĭid the tips in this article prove to be useful? We hope they did. This would return all files with the word recipe in the name but exclude all files with the word chicken in the name. You can also exclude certain words from your search.įor example, if you are looking for a recipe document that you’ve saved that you know has the word recipe in it, but you don’t want a chicken recipe, you could use the command ‘recipe NOT chicken’. You can either select today, this week, last week, this month, last month, this year, and last year. Click on the drop-down menu and choose the time frame that you think applies to your file.
After clicking, a Date Modified option will appear. There’s no limit to how many search parameters you can use in one search, so by combining multiple, you’ll save lots of time trying to locate the file. Open the File Explorer and click on the search in the upper right-hand corner.
png file that is over 1000 pixels wide and you know it was created before the 20th of February 2018, you can use this command: ‘ type. Remember that you can combine any combination of these search filters in a single search. Thanks for taking a look at our advanced Windows Explorer file search tips. This will only show the files that are between that range. For example, if you know that a file is between 200MB and 300MB, you can use the command: ‘size: 500MB – 800MB’. Using these commands is great for smaller files, but for files that are larger than 128MB, you should use a search range. You can use the following quick commands for certain sizes: If you know the rough file size, you can use the ‘size:’ command to filter out results. Height: ’ to look for files made before or after specific dates, respectively.Width: x for files over a specific height.Width: >x for files over a specific width.If you don’t know the exact dimensions, but you know it’s within a certain limit, you can instead use the following search parameters: Simply replace ‘x’ with the exact dimensions. If you know the dimensions of the image, you can type in width: x, height: x. Below we have a number of tips exclusive for images on your PC. You can also do the same with PowerShell if you prefer with the cmdlet Get-ChildItem and Where-Object.First let’s take a look at the options you have available for tracking down specific images. ForFiles /p "z:\OneDrive" /s /m *.PDF /d -365 /c "cmd /c del you need to do this frequently or on different computers, you can put it in a batch file so you can run it by double-clicking it. To delete the files found in the search, replace “ echo” with “ del” in the command. and for the date and time of the file.You can use other variables if needed, such as: “cmd /c echo is the default command if not specified. The command string needs to be wrapped up in double quotes. /c to indicate the command to execute each file found in the search.
/d to select files with a last modified date.
In this case, use *.PDF to find all PDF files. /m to define the search mask for the specified files./s to search all subfolders recursively./p to indicate the path to start the search.ForFiles /p "z:\OneDrive" /s /m *.PDF /d -365 /c "cmd /c echo which, Yes, of course, you can still do so from the powerful File Explorer that comes with Windows but it certainly takes more steps than a simple command.įor example, if I need to search for a list of PDF files that are older than a year in my OneDrive, I can open Command Prompt and run the following command. Perhaps, the easiest way to delete files at a certain age is through a command line or a batched file or even a script.