Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can I create a desktop shorcut using a batch file

Posted on 2004-04-22
3
Medium Priority
?
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

688 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