title: Open shortcut (.lnk) with parameter lines Java
body: <p>I'd like to start a shortcut with parameter-lines How could I execute this shortcut with parameters in Java? (As this doesn't work with ProcessBuilder I'm stuck once again...)</p>
  
  <p><strong>"C:/Program Files/MyPrograms/MyShortcut.lnk" -s 3 -n 100</strong> (what ever these parameter lines mean now)</p>
  
  <p>I'm sucessfully able to launch my shortcut, without parameters.</p>
  
  <p>code:</p>
  
  <pre><code>String directoryFile = "C:/Program Files/MyPrograms/MyShortcut.lnk"
  
  Desktop.getDesktop().open(new File(directoryFile));
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>String directoryFile = "C:/Program Files/MyPrograms/MyShortcut.lnk"
  
  Desktop.getDesktop().open(new File(directoryFile)+"-s 3 -n 100");
  </code></pre>
  
  <p>This does work, but only for .exe files; I'd need to open a .lnk(win shortcut) with parameters</p>
  
  <pre><code>Process p = new ProcessBuilder("C:/Program Files/MyPrograms/MyFile.exe",
                                            "-n", "100")
                                        .start();
  </code></pre>
  
  <p>Thanks</p>