Link to home
Start Free TrialLog in
Avatar of rgutwein
rgutwein

asked on

copy shortcut to desktop batch file

Hello,

I have a shortcut on a shared folder and I would like to have that shortcut copied to a particular users (example "STUDENT") desktop.  How can I do this?

the path of the file is \\server1\testing\testing.exe - shortcut

or is there a way to have the actual executable be put as a shortcut on that users desktop?
ASKER CERTIFIED SOLUTION
Avatar of Glen Knight
Glen Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of rgutwein
rgutwein

ASKER

Thanks for the reply demazter,

Unfortunately we do not use Roaming profiles, and I would like to use

"\\server1\testing\testing.exe - shortcut" "\\computername\c$\documents and settings\username\desktop" /y

but this shortcut needs to be copied on multiple computers on the network.  Is this possible?
I figured it out, since it is a shortcut, you have to put a .lnk at the end (even though it does not show up when you have the extension visible.)

copy \\server1\testing\TestTkr.exe.lnk "%userprofile%\desktop"

Thank you for your help!


Randy