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
LVL 1
Tom_HickersonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KDivadCommented:
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,
0
Tom_HickersonAuthor Commented:
That works for me.  Just answer and I will give you the points.

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

Thanks,
Tom
0
KDivadCommented:
Actually, there is supposed to be an option to "Accept Comment as Answer", but here you go...

Glad I could help!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom_HickersonAuthor Commented:
Sorry did not see that choice.  It must be new they did not have that feature before...
Thanks again,
Tom
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.