running a shortcut ?

Hi all ...

hope you can help ...
I am trying to write a program that execute exe's.
now, my question is, one of my exe's are a shortcut, and there are parameters in .... how do I do it now ?

regards
ripper

Comments

  • uses
    ShellAPI;

    begin
    ShellExecute(Handle,'OPEN',PChar('filename.lnk'),PChar('parameters'),nil,SW_SHOWNORMAL);
    end;

    ---

    Regards

    /Filip
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion