MKLNK?

May 20, 2008
11,810
118
Syracuse, NY, USA
If I issue "MKLNK" (without "/=") I get the command dialog anyway (which seems wrong).

If I use the command dialog, and enter "exists" in the first box (existing file or directory) and "new" in the second box (new file or directory link), the command line created is
Code:
MKLNK new exists
which seems to be the opposite of the help's
Code:
parm1 Name of an existing file (hard link) or directory (for soft link).
parm2 Name of the new directory entry (a file or directory reference) to be created.
 
May 20, 2008
11,810
118
Syracuse, NY, USA
And MKLINK would seem to indicate success inappropriately.
Code:
v:\> mklink /j adhome o:\
Junction created for adhome <<===>> o:\

v:\> dir adhome\

TCC: (Sys) The data present in the reparse point buffer is invalid.
 "V:\adhome\"
 
May 20, 2008
11,810
118
Syracuse, NY, USA
No, that's right (and has always behaved that way).

Commands that don't take a default value will invoke the command dialog if you don't provide an argument.
OK, I see it now ... with REN, and COPY. Is that new?
 

rconn

Administrator
Staff member
May 14, 2008
12,425
153
If I use the command dialog, and enter "exists" in the first box (existing file or directory) and "new" in the second box (new file or directory link), the command line created is
Code:
MKLNK new exists

I have corrected the ordering in the next build.

However, you shouldn't be using MKLNK - it has been obsolete since Windows 7. You should be using MKLINK.