This question already has an answer here:
- How to make a shortcut from CMD? 2 answers
How can I create a shortcut to the file
D:\myfile.extension on the Desktop using a batch script?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
You can achieve without external tools this by creating a temporary VBScript:
(Idea taken from here.)
This will create
You can supply additional properties before saving the link by modifying the following values:
Consult How to create a desktop shortcut with the Windows Script Host to see a few examples.
there is external command shortcut.exe that can do this in that way:
that can create shortcut of skype in your desktop
it is free downloadable program, but i can't find its link, so i will try to upload it and post the link
here it is:
This code creates a shortcut in the "All Users" desktop folder called NOTEPAD.url pointing to the NotePad application, and will also assign an icon from the SHELL32.dll. Change the path and filename to your D:/ location and exename. And make sure your .url filename stays the same across all lines of code.