Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a junction using cygwin?

This question shows that cygwin’s soft links are somewhat different from ntfs junctions. I’d like cygwin to create a real junction. I thought about running mklink but, hell, there is no mklink.exe. Apparently, it’s part of the shell command. There I’m stuck.

Any idea how I can do that on a script ?

like image 631
qdii Avatar asked Dec 22 '22 01:12

qdii


1 Answers

Found the answer, running cmd.exe /c mklink /j name target did the job. I leave the answer here in case someone runs into the same trouble.

EDIT: Added /j switch as pointed out by Ken Williams in the comments.

like image 127
qdii Avatar answered Dec 28 '22 08:12

qdii