Is there any way in windows XP to create a shortcut to a file from the command line?

If not what is the easiest Winapi call to create a shortcut to a file?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 0 down vote accepted

I think this is what you're looking for:
http://stackoverflow.com/questions/346107/creating-a-shortcut-for-a-exe-from-a-batch-file

link|improve this answer
feedback

You can use the utility NirCmd http://www.nirsoft.net/utils/nircmd.html

example

nircmd.exe shortcut "C\Windows:\System32\calc.exe"    "C:\Calculators" "Windows Calculator" 
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.