Page 1 of 1

Remove shortcut

Published: July 26, 2022 - 1:05 PM
by Geoffroy
Hello,

how can I remove the shotcuts from this location
C:\ProgramData\Microsoft\Windows\Start Menu\Program

in the PyScripter script?

Thank you for your help.

Re: Remove shortcut

Published: July 28, 2022 - 09:11
by florian777
Good morning

You can do it with this command:

Code: Select all

remove_file(r'C:\ProgramData\Microsoft\Windows\Start Menu\Program\*.lnk')

Re: Remove shortcut

Published: July 28, 2022 - 2:52 PM
by Geoffroy
Thanks for your feedback, I'll try it and come back with more information