How to create a shortcut to a .exe file that sits on a network drive with a batch file? I want the shortcut placed on my desktop

I have a .exe shortcut that keeps getting removed because the network drives do not load before the users profile loads.
I am having to recreate a shortcut for my users all the time and would like to create a .bat file they could run that would recreate it for them.
The .exe file sits on the K: drive and I want a .bat file that places the shortcut to the .exe on their desktop.
Any ideas?
adam_daunhauerAsked:
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.

Joe Winograd, Fellow&MVEDeveloperCommented:
Hi Adam,

Place a link (.LNK file) to the .EXE file on the K drive. Then this one line goes in your batch file:
copy K:\WhateverFolder\WhateverShortcutName.lnk C:\Users\%username%\Desktop\WhateverShortcutName.lnk

Open in new window


Regards, Joe
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
adam_daunhauerAuthor Commented:
Thanks that worked
0
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome. I'm glad that worked for you.
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
Windows 7

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.