Page 1 of 1

Creating a shortcut

Published: July 1, 2016 - 10:45 PM
by francketaude
Good evening,

I'm brand new here and have a lot to learn!

So, my first question will probably seem simplistic, but I'm already stuck...

Looking at the generated setup.py file, I hope to understand and grasp some of the syntax.

But for now, I don't see how I can create a shortcut anywhere other than on the public desktop.
For example, for an executable program (avimeca in this case):

`create_desktop_shortcut(r'avimeca2', target=r'C:\Program Files (x86)\avimeca2\avimeca2.exe')`.

Do you have an example of the command to enter so that the shortcut is created in the desired folder?

Thank you,
Franck

Re: Creating a shortcut

Published: July 2, 2016 - 9:17 AM
by francketaude
Good morning,

Solved because it's so simple:

Code: Select all

create_shortcut(r'c:\Users\Public\Documents\Sciences physiques\Physique\avimeca2.lnk',target=r'C:\Program Files (x86)\avimeca2\avimeca2.exe')