Solved

Can I create a desktop shorcut using a batch file

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Windows 2000 Server to 2008 upgrade 8 530
Windows 2000 undelete (free program?) 6 440
Update a root certificate 8 706
Referencing a mapped drive 6 146
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…
Configuring Remote Assistance for use with SCCM

710 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