Command line-based shortcut creator

  • Thread starter Thread starter Chaos Master
  • Start date Start date
C

Chaos Master

Hello!

I am looking for a program that can be used to create a shortcut ('.lnk' file)
from a command. e.g.

C:\> make_shortcut c:\program\app.exe c:\windows\desktop\app.lnk

And it would create shortcut (app.lnk) to app.exe.

Is there such program?

Thanks
--
Chaos Master®, posting from Brazil.
"I'd rather be hated for who I am, than loved for who I am not." -- Kurt Cobain

Evanescence: http://marreka.no-ip.com | Lies: http://tinyurl.com/46vru |
/dev/null: http://renan182.no-ip.org
 
Chaos Master said:
Hello!

I am looking for a program that can be used to create a shortcut ('.lnk' file)
from a command. e.g.

C:\> make_shortcut c:\program\app.exe c:\windows\desktop\app.lnk

And it would create shortcut (app.lnk) to app.exe.

Is there such program?

Ooh ooh ooh! Nircmd!

My own integrated use of Nircmd is for writing/deleting on inis, as well
as for certain regdeletes, when I don't want reg.exe's deltree action.
Those are just a couple of its available functions. It has all kinds of
things it can do. Including lots of choice for automated lnk creations.

http://www.nirsoft.net/utils/nircmd.html

I had some notes on the lnk syntax and results, etc, but they applied
to the previous version of this program (when it was call Nircomline)..
And in any case, the included CHM should tell you all you need.

These two URLs are linked from the main program page above:

http://www.nirsoft.net/utils/nircmd2.html (extended help on usage)
http://www.nirsoft.net/utils/nircmd.zip (52k)
 
Chaos said:
I am looking for a program that can be used to create a shortcut ('.lnk' file)
from a command. e.g.

C:\> make_shortcut c:\program\app.exe c:\windows\desktop\app.lnk

And it would create shortcut (app.lnk) to app.exe.

Is there such program?

There are many, but if I could suggest http://www.autohotkey.com/.

FileCreateShortcut, Target, LinkFile [, WorkingDir, Args, Description,
IconFile, ShortcutKey]

Also, just google for shortcut.exe.
 
Back
Top