Can a shortcut to a folder show specific files? (Windows 11)


  1. Posts : 3
    Windows 10 Home
       #1

    Can a shortcut to a folder show specific files? (Windows 11)


    If I have a folder of photos of dogs and cats, with filenames like:

    cats 20220323.jpg
    cats 20220323.png
    cats 20220425.jpg
    cats 20220425.png
    dogs 20220129.jpg
    dogs 20220129.png
    dogs 20220627.jpg
    dogs 20220627.png

    Is there a way to make a new shortcut to the folder that will only show the dog files of JPG filetype? The only thing I could think of was selecting the folder and trying a "DIR" statement, but that obviously doesn't work.

    C:\Photos "dir dogs*.jpg"

    Thanks.
      My Computer


  2. Posts : 42,921
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    If you wanted to do that with file explorer you would need to use its search box.

    In principle your shortcut could launch a small script which would open file explorer at the path specified, send F3 to the explorer window to select the search box, and then the search string e.g.
    dogs*.jpg <enter>.

    The result would be that file explorer would open at that folder and display only items in that folder matching dogs*.jpg

    The script could be set up as a folder context menu item.

    However, this would be of very limited value given its inflexibility.

    Note- for Win 11-specific questions please see tenforums sister forum elevenforum.com
      My Computers


  3. Posts : 3,274
    Win10
       #3

    Also to add to what dalchina has said re: the Search box.

    Although I don't know how useful it may be, if you want to see all dog*.jpg's , do a search for dog*.jpg in the folder of interest, and once the results are found, click the Explorer address bar and drag and drop the blue "Search" icon from the address bar to say on the desktop.

    Another possibility is to create a generic Explorer shortcut say on the desktop, using the following format as the target:
    eg: to search for dog*.jpg in C:\Custom\Sample , use:
    Code:
    explorer.exe "search-ms:query=dog*.jpg&crumb=location:C:\Custom\Sample\"
    Having said all that, I would have to defer to dalchina's overall experience on Windows Search.
      My Computers


  4. Posts : 3
    Windows 10 Home
    Thread Starter
       #4

    Thanks, guys!

    My wife isn't all that familiar with using the computer much (videos, email and mahjongg are her limits at the moment). das10's suggestion works like a charm.

    dalchina, I know it's not a very flexible solution, but it works for what I need right now.

    Thanks again!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:18.
Find Us




Windows 10 Forums