1

In Windows Explorer, I've created a folder that contains a list of shortcuts to other folders. For example:

Folder with multiple shortcuts

Is there any way to search for files and content in just those folders?

I was hoping to just use the Explorer search bar, but it doesn't seem to look into folder shortcuts.

2
  • AFAIK, Windows sees shortcuts as files (.lnk), because that is all a shortcut really is. It is a file that contains data pointing to another location. While Windows Search can go into sub folders, it cannot follow shortcuts.
    – CharlieRB
    Commented Nov 6, 2015 at 19:12
  • I was hoping there might be an option to tell it to follow the shortcut... :( Commented Nov 6, 2015 at 22:52

2 Answers 2

1

You can use Library which includes links to your folders to search all folder links included in your library enter image description here

0

Shortcuts are simply a normal file pointing to some item to open it so you can't recurse into them and search. You need to create a symlink or hardlink. For example if the folder you want to use for searching is C:\Searching then you can run this

mklink /j "C:\Searching\Util" "C:\Users\My\Util"

to create a symlink folder from C:\Users\My\Util to C:\Searching\Util

In PowerShell you can do like this

New-Item -ItemType Junction -Path "C:\Searching\logs" -Target "C:\Users\logs" # or
ni "C:\Searching\websites" -i SymbolicLink -ta "C:\My\websites" 

In both cases you need to run the console as administrator, or you'll have to enable developer mode

After that you can search freely in Explorer or in any command line tools because the folder appear just exactly as if they're in the new folder. Here's an example on my PC:

search within junctions result

See also

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .