Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a link file
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467377
Message ID:
00467473
Vues:
15
>>>I have some '.lnk' files I want to run programaticaly synchronosly. I have tried to use my shellwait code (same as in files section) however, the lnk is not really an executable. Ideas that will allow me to do it?
>>
>>Try something like this:
>>
Shell "cmd /c D:\EMoreau\ddm.lnk", vbNormalFocus
>
> Speculate(This does not seem to like long filenames.) I recieve a file not found msg and the file is indeed there. And a debug time eval shows all backslashes and full path, file and extention. Maybe there is a way to get the links info out and actually run the program instead of the link... Just some thoughts. Any ideas?

Long file names are nightmare!

Use this:
Shell "cmd /c " & Chr$(34) & "C:\WINNT\Profiles\emoreau\Desktop\FGL - DDM.lnk" & Chr$(34), vbNormalFocus
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform