F
F
flashguy2011-01-11 12:21:36
linux
flashguy, 2011-01-11 12:21:36

How to programmatically create Application/Folder/Link Shortcuts (Desktop Shortcuts) for Win/Lin/Mac?

Can you please tell me how to programmatically create shortcuts? You can link to the specification. Is it even possible to create shortcuts as *.lnk text files?
Thank you all, problem solved.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
Q
qstorm, 2011-01-11
@qstorm

the first thing that came to mind was to create them from the command line
cmd -> mklink /?
I hope you know how to access cmd programmatically.
in nix, I would also contact
the ln program through system (for example)

S
Sergey, 2011-01-11
@bondbig

*.lnk is a binary format, not a text one, and it is specific to win.

A
Anton Pronin, 2011-01-11
@nightw0rk

Both on Linux`e and on Mac`e, alas, I can’t suggest a couple of articles on your question on Windows:
support.microsoft.com/kb/155303
msdn.microsoft.com/en-us/library/bb774950 (v= vs.85).aspx

C
clamaw, 2011-01-11
@clamaw

Of course, I could be wrong, but on a poppy, creating a shortcut for an application for itself on all sorts of desktops and other things is not good. The maximum that can be done is to register in the dock on your own (which, for example, infuriates me). Plus, under the Mac, the link format in the finder is also some kind of binary, but I'm sure that there are functions in the API.

Z
z0rc, 2011-01-11
@z0rc

In *nix at freedesktop.org/wiki/Specifications/desktop-entry-spec

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question