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:
00467650
Views:
13
>>>>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
DOH! Why didn't I think of that...
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform