I've noticed a couple of times that it looks like I can't use NTFS junctions under %SystemRoot%, put the ensuing file path in my PATH, and get it to work for DLL lookup.
For example, if I put a vendor's "bin" directory under there as a junction, and put it in my %PATH%, then I can run executables there just by typing the executable's name on the command line (without the path), but they immediately throw up a dialog that the DLLs the executable uses from that same directory cannot be found.
If I instead put the vendor's "bin" directory path directly into the %PATH%, they run fine.
What exactly is going on here? Is there a good reason for it, or is it just a bug?