Solved

Can I create a desktop shorcut using a batch file

Posted on 2004-04-22
3
403 Views
Last Modified: 2010-04-13
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!

thanks

rich
0
Comment
Question by:MisterBedo
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 50 total points
ID: 10887185
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\shortcutname.ink "c:\program files"
copy c:\program file\shorcutname.ink "c:\Documents and Settings\All Users\Desktop"
0
 

Author Comment

by:MisterBedo
ID: 10887238
Thanks!
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10891002
:) ThanQ
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read our guide on how to survive being on-call.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question