Bonjour,
Je cherche désespérément à créer un raccourci vers un dossier. Les fonctions create_* de WAPT ne permettent que de créer des raccourci vers des fichiers (ou alors je les utilise mal), et je n'arrive pas à trouver d'exemple en python sur internet.
Quelqu'un aurait-il ça sous la main ?
Merci d'avance. Bastien
peut etre
create_desktop_shortcut ?
exemple de creation de lien pour un EXE
create_desktop_shortcut(r'Avimeca.lnk',target=r'C:\SCIENCE\Avimeca\avimeca3.exe', wDir=r'C:\SCIENCE\Avimeca\',icon=r'C:\SCIENCE\Avimeca\avimeca3.exe')
Le 25 octobre 2016 à 12:42, Bastien HERMITTE bhermitte@b2pweb.com a écrit :
Bonjour,
Je cherche désespérément à créer un raccourci vers un dossier. Les fonctions create_* de WAPT ne permettent que de créer des raccourci vers des fichiers (ou alors je les utilise mal), et je n'arrive pas à trouver d'exemple en python sur internet.
Quelqu'un aurait-il ça sous la main ?
Merci d'avance. Bastien _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour,
Je cherche désespérément à créer un raccourci vers un dossier. Les fonctions create_* de WAPT ne permettent que de créer des raccourci vers des fichiers (ou alors je les utilise mal), et je n'arrive pas à trouver d'exemple en python sur internet.
la commande create_shortcut fonctionne aussi avec des répertoire:
create_shortcut(r'c:\myshortcut.lnk',r'c:\tranquilit')
Bien penser à mettre un "r" devant la string sinon les backslash seront interprétés comme des caractères d’échappement.
Cordialement,
Denis
Quelqu'un aurait-il ça sous la main ?
Merci d'avance. Bastien _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour,
Merci, il me manquait le .lnk pour que ça fonctionne.
Cordialement, Bastien
Le 25/10/2016 à 16:11, Denis Cardon a écrit :
Bonjour,
Je cherche désespérément à créer un raccourci vers un dossier. Les fonctions create_* de WAPT ne permettent que de créer des raccourci vers des fichiers (ou alors je les utilise mal), et je n'arrive pas à trouver d'exemple en python sur internet.
la commande create_shortcut fonctionne aussi avec des répertoire:
create_shortcut(r'c:\myshortcut.lnk',r'c:\tranquilit')
Bien penser à mettre un "r" devant la string sinon les backslash seront interprétés comme des caractères d’échappement.
Cordialement,
Denis
Quelqu'un aurait-il ça sous la main ?
Merci d'avance. Bastien _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt