Create Windows Symbolic Link with Java (equivalent to MKLINK) -


could please tell me how make symbolic link (in same way mklink does) and/or remove symbolic link java. have found solutions use java wrapper , use windows native program accomplish this, want pure java solution. thank in advance!

since java 7 can using nio package.

path target = paths.get("target"); path link = paths.get("link"); files.createdirectory(target); files.createsymboliclink(link, target); 

do remember need correct privileges this. in unit test had run eclipse administrator make work (same couldn't create link normal cmd.exe)


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -