title: How do I create a shortcut via command-line in Windows?
body: <p>I want my .bat script (test.bat) to create a shortcut to itself so that I can copy it to my windows 8 Startup folder. </p>
  
  <p>I have written this line of code to copy the file but I haven't yet found a way to create the said shortcut, as you can see it only copies the script.</p>
  
  <pre><code>xcopy "C:\Users\Gabriel\Desktop\test.bat" "C:\Users\Gabriel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
  </code></pre>
  
  <p>Can you help me out?</p>