Solved

Can I create a desktop shorcut using a batch file

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now