Can I create a desktop shorcut using a batch file

I've got a simple batch file that places an exe within a folder under c:\program files.

What I want is for the same batch file to then create a shortcut to that exe on the desktop of the particular user that is logged on at the time.

I have no idea how to go about creating shortcuts using this method, so if anyone can help I'd appreciate it!


Who is Participating?
Pete LongConnect With a Mentor Technical ConsultantCommented:
create a shortcut Manually put a copy of the shortcut in it (on the network)
then tag this on the end of the script

copy \\server\folderwithshortcutin\ "c:\program files"
copy c:\program file\ "c:\Documents and Settings\All Users\Desktop"
MisterBedoAuthor Commented:
Pete LongTechnical ConsultantCommented:
:) ThanQ
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.

All Courses

From novice to tech pro — start learning today.