Copying Symbolic Links
import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; public class Test { public static void main(String[] args) throws Exception { Path originalLinkedFile = FileSystems.getDefault().getPath("C:/home/music/users.txt"); Path newLinkedFile = FileSystems.getDefault().getPath("C:/home/music/users2.txt"); Files.copy(originalLinkedFile, newLinkedFile); System.out.println("Symbolic link file copied successfully!"); } }