What I need is a batch file
that when I drag a file onto it it creates a hardlink
with the link name the same as the file dropped onto the script with (HL) added to link name.
e.g. test.txt [original] --> test(HL).txt [hardlink]
I've tried using this but it doesn't work.
mklink /h %~n1(HL).%~x1 %~nxf
How can I get this working?
You got your target wrong:
I changed the parentheses to square brackets because I disagree with their use in file/folder names, that choice is of course yours to make.