Faire un SHELL d'un raccourci

Andre - 3 nov. 2000 à 02:42
 villissina - 6 déc. 2000 à 12:20
Dans l'obligation de lancer un raccourci (*.lnk), à partir d'un programme VB5,je n'y arrive pas.

Par ex:
x=shell("c:windowsureauexplorateur.lnk",1),
ne fontionne pas.

HELP, et merci d'avance

3 réponses

Voici une solution qui marche en VB6 :

Dim RetVal
RetVal=shell("c:windowsprogman.exe c:windowsureauexplorateur.lnk",1)
0
OK, je vais tenter cette manip.

Merci Fabien pour le tuyau.
0
R=shell("start toto.xxx")
lance l'application associée au xxx et ouvre le fichier toto:
ca marche pour tout, donc normalement aussi pour les link
0
Rejoignez-nous