Link to home
Start Free TrialLog in
Avatar of Tom_Hickerson
Tom_HickersonFlag for United States of America

asked on

Running a shortcut

Is there a way to run a shortcut (*.lnk) file from a VB program?  I was trying to use the shell function, but that will only work with *.exe files.

Thank you,
Tom
Avatar of KDivad
KDivad

You can use Start.

x = Shell("start yourfile.lnk", vbminimizednofocus)

I'm not sure vbMinimizedNoFocus is correct, but I think you can figure out which one I mean.

Later,
Avatar of Tom_Hickerson

ASKER

That works for me.  Just answer and I will give you the points.

Thanks,
Tom
That works for me.  Just answer and I will give you the points.

Thanks,
Tom
ASKER CERTIFIED SOLUTION
Avatar of KDivad
KDivad

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry did not see that choice.  It must be new they did not have that feature before...
Thanks again,
Tom