Click to See Complete Forum and Search --> : Execute shortcut files.. urgent


wolfen_76
November 15th, 1999, 01:50 PM
Could anyone help, I need to execute the shortcut files.. ".lnk" from vb.. this is a very urgent matter.. coz i have a hard time trying to figure out the shell.dll api function...

Thank in advance...

Lothar Haensler
November 16th, 1999, 03:07 AM
IMHO this is NOT easy.
You can check out the sample in MSDN in the Books Section there is an excerpt from hardcore VB that has the ODL syntax for a type lib that you need.
Basically, you need to implement the IShellLink and IPersistFile COM interfaces to get access to the LNK file contents (unless you use some (undocumented?) ways to get that information directly from the LNK file via binary read access).

This is easier to do in C++ than in VB, IMHO.

wolfen_76
November 23rd, 1999, 10:38 PM
Thanks but i've already solve the matter.. first i fing the .lnk description.. of the full path then i proceed to execute the exe files.. by the way have u heard of expert system... i need to find out and find a good tool to use.. any idea?

TomW
March 17th, 2000, 09:43 AM
That (binary read of a LNK) is exactly what I have been trying to figure out how to do... I need to check all shortcuts on the desktop to see if they contain a certain path. I have been trying to open the lnk files for Binary, but I can't seem to input the information from the file. Any ideas?