Bonjour,
Mon problème je voudrai copier un raccourci existant sur le bureau, j'ai crée une fonction
je récupère bien le chemin du bureau mais rien ne se copie sur le bureau et je n'ai aucun message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Function Copficon() Dim filesys, objShell, DesktopPath Set objShell = CreateObject("WScript.Shell") set filesys = CreateObject("Scripting.FileSystemObject") DesktopPath = objShell.SpecialFolders("Desktop") 'je recupere le chemin du bureau MsgBox DesktopPath 'OK filesys.CopyFile "C:\mon rep\MonerpSpecif\Menu.lnk", "DesktopPath" MsgBox "le raccourci a été copié sur le bureau." ,vbExclamation ,"Information" End Function
Merci
Partager