Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a link file
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00467377
Message ID:
00467473
Views:
14
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform