cmd.exe and powershell.exe cannot follow <JUNCTIONS> on NTFS for *.exe
Aurélien Couderc
aurelien.couderc2002@gmail.com
Tue Jun 17 15:25:57 GMT 2025
Cygwin creates <JUNCTIONS> instead of <SYMLINK> on NTFS, but cmd.exe
cannot find the *.exe if they are linked as <JUNCTIONS>.
Two test cases:
$ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ;
ln -sf id_vers15.exe myid.exe ; cmd /C \'.\\\\\myid.exe\''
$ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ;
ln -sf id_vers15.exe myid.exe ; powershell -Command
\'.\\\\\myid.exe\''
In both test cases the copied and linked myid.exe cannot be executed.
Is there a way to fix this?
Aurélien
--
Aurélien Couderc <aurelien.couderc2002@gmail.com>
Big Data/Data mining expert, chess enthusiast
More information about the Cygwin
mailing list