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
Post a Comment