Page 1 of 1

a shortcut

Published: June 26, 2023 - 11:32
by meree
Hello,

I would like some help.
Is there a way to create a shortcut in the Startup folder so that the program runs when the computer is turned on?
I've searched everywhere but haven't found anything, and I've tried several methods, but it still doesn't work.

I've looked at the documentation and other packages in the Microsoft Store, but I haven't found anything there either.

Thank you for your help.

Server: WAPT Enterprise 2.4.0.14031 on Debian.
Consoles: Windows 11.
Network: Windows

Re: a shortcut

Published: August 11, 2023 - 3:22 PM
by blemoigne
Good morning,
You would need to place the shortcut in your package (default directory c:\waptdev) and then write the following line in the install() function:

Code: Select all

def install():
    filecopyto('nomduraccourci.lnk',r'"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"')
Best regards,
Bertrand