Treat folders mapped to drive letter as own drive

Have a suggestion for "Everything"? Please post it here.
Post Reply
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Treat folders mapped to drive letter as own drive

Post by vertigo »

I suspect this is due to a Windows limitation, and there might not be anything that can be done about it, but I have D:\S_Drive mapped to S:\ via registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices -- String -- S: -- \??\D:\S_Drive\) and when I searched for something I knew was on the D: drive, when I tried opening it, it didn't open. After frustrating me for a minute, I realized the problem was that it was showing two results for every file on D:, one for D:\...file and one for S:\...file, because Everything sees S: and D: as the same drive due to the mapping. In order to fix this, I had to exclude D:\S_Drive, but that ideally shouldn't be required at all. The bigger issue, though, is that results for files in D:\S_Drive don't show as S:\file, which is how they are in explorer if opening the S: "drive," but as S:\S_Drive\file, which isn't even a real location. Not only does this look strange, but I have Everything set to open the path in explorer by double-clicking it, but attempting to do so in this case just results in an error that Windows can't find the path, unsurprisingly.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Treat folders mapped to drive letter as own drive

Post by void »

Thank you for your post vertigo,

Everything doesn't like the trailing slash in \??\D:\S_Drive\

Please try removing the trailing slash.
For example:
\??\D:\S_Drive

subst doesn't add the trailing slash.

I will allow for a trailing slash in the next Everything 1.5 alpha.



You will still need to exclude D:\S_Drive if you don't want these files to show.
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Re: Treat folders mapped to drive letter as own drive

Post by vertigo »

Thanks! I had to wait until a reboot to test the change, but removing the trailing slash did the trick. Working as expected now. :)
Post Reply