Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

MKLINK /x discrepancy

TCC 13.00.21 x64 Windows 7 [Version 6.1.7601]

I was testing mklink /j and mklink /x and found the following:
1) mklink /x requires a link and a target parameter as in mklink /x c1 a\b\c
2) If you specify mklink /x c1 you get an error message which doesn't show the /x as an option. See below #1
3) The second parameter (target) doesn't even have to point to anything related to the link you are trying to delete. I entered mklink /x c1 abc and c1 was deleted. "abc" is simply another directory unrelated to what c1 was pointing to. See below #2

I would suggest that mklink /x doesn't logically need a second parameter because you are simply deleting the link and not the target. You should be able to code: mklink /x c1

[C:\TestPad\root]dir

Volume in drive C is KALI007 Serial number is 6824:de4f
Directory of C:\TestPad\root\*

2011/10/31 21:24 <DIR> .
2011/10/31 21:24 <DIR> ..
2011/10/31 20:52 <DIR> a
2011/10/31 21:24 <DIR> abc
0 bytes in 0 files and 4 dirs
11,492,667,392 bytes free

[C:\TestPad\root]mklink /j c1 a/b/c
Junction created for c1 <<===>> a

[C:\TestPad\root]mklink /x c1 <----#1
Usage : MKLINK [/D /H /J /Q] link target

[C:\TestPad\root]mklink /x c1 abc <----#2

[C:\TestPad\root]dir

Volume in drive C is KALI007 Serial number is 6824:de4f
Directory of C:\TestPad\root\*

2011/10/31 21:25 <DIR> .
2011/10/31 21:25 <DIR> ..
2011/10/31 20:52 <DIR> a
2011/10/31 21:24 <DIR> abc
0 bytes in 0 files and 4 dirs
11,492,667,392 bytes free
 

Similar threads

Back
Top