CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Posts
    35

    Execute shortcut files.. urgent

    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...


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Execute shortcut files.. urgent

    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.



  3. #3
    Join Date
    Jul 1999
    Posts
    35

    Re: Execute shortcut files.. urgent

    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?


  4. #4
    Join Date
    Feb 2000
    Location
    Ohio
    Posts
    3

    Re: Execute shortcut files.. urgent

    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?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured