Does anyone know how to get the paths to shortcuts in Java? So that someone else could download my code and use it without the need of changing the paths in the code. I'm using this to run the executable shortcuts.
public static void main(String[] args) throws Exception {
ProcessBuilder pb = new ProcessBuilder("cmd", "/c",
"C:\\Users\\...\\Desktop\\notepad.lnk");
Process p = pb.start();
p.waitFor();
}
Now I want to find the path of the notepad.lnk
with code, and then open it.