cygwinntfsjunction

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.exeApparently, it’s part of the shell command. There I’m stuck.

Any idea how I can do that on a script ?


Solution

  • 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.