'création raccourci bureau avec ouverture programme
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
Set link = Shell.CreateShortcut(DesktopPath & "\UnRaccourciBureau.lnk")
link.Arguments = "1 2 3"
link.Description = "raccourci test"
'link.HotKey = "CTRL+ALT+MAJ+X"
link.IconLocation = "D:\eMule\eMule.exe,1"
link.TargetPath = "D:\eMule\eMule.exe"
link.WindowStyle = 3
link.WorkingDirectory = "e:\eMule"
link.Save
wscript.quit
'suppression d un raccourci
Set Shell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
DesktopPath = Shell.SpecialFolders("Desktop")
FSO.DeleteFile DesktopPath & "\Shortcut MonRaccourci.lnk"
Set FSO = Nothing
et voilà.....
Vous n’avez pas trouvé la réponse que vous recherchez ?