E.B.
'C:\WINDOWS\System32\wshom.ocx 'Windows Script Host Object Model Private Sub Command1_Click() Dim vShell As Object Dim vLink As Object Set vShell = CreateObject("WScript.Shell") '------------------- ' ecris un lien '------------------- Set vLink = vShell.CreateShortcut(App.Path & "\test.lnk") With vLink .TargetPath = "calc.exe" .WindowStyle = 1 .IconLocation = "calc.exe, 0" .Arguments = "" .Save End With Set vLink = vShell.CreateShortcut(App.Path & "\test.lnk") '------------------- ' lit le lien '------------------- With vLink MsgBox .TargetPath MsgBox .IconLocation End With End Sub
E.B.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question