Solved

Can I create a desktop shorcut using a batch file

Posted on 2004-04-22
3
405 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 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
Let's recap what we learned from yesterday's Skyport Systems webinar.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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: …
Suggested Courses

622 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