Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Creating a batch script or use a 3rdpartyprogram to create shortcuts


26 Sep 2012   #1

Windows 7 Home Premium
 
 
Creating a batch script or use a 3rdpartyprogram to create shortcuts

Hello!

I'm having trouble creating a batch script to simply copy a shortcut to the desktop from a program installation, then carry out some tasks.

Overall my goals are:
Burn a CD that includes a autorun.inf that will load a batch script
In the script I want it to activate two self extraction archives
1.
activate a self-extraction archive to install the necessary files to C:\Program Files (x86)\Software
2. (once 1. completes)
activate a self-extraction archive to install the necessary files to C:\Program Files (x86)\Software\Content

Then finally have the batch script create a shortcut from C:\Program Files (x86)\Software\Softwarename.exe
to
%userprofile%\Desktop\softwarename.ink

Any advice will be appreciated. thanks in advance..

My System SpecsSystem Spec
.

06 Oct 2012   #2

Windows 7 Home Premium
 
 

Still looking for a solution!
My System SpecsSystem Spec
06 Oct 2012   #3

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Not easy to do with a simple windows command or two, as far as I know.

I use a little program for lots of things - it can create shortcuts.

If you want to use a command to run it , like this

create a shortcut on the dektop for easybcd.exe:


wincmd.exe LINK %Desktop%\EasyBcd,%Systemdrive%\Program Files\Neosmart Technologies\EasyBcd\EasyBcd.exe

WinCMD .zip

For your question:

wincmd.exe LINK %Desktop%\softwarename,C:\Program Files (x86)\Software\Softwarename.exe

If you want a different icon on the shortcut:

wincmd.exe LINK %Desktop%\softwarename,C:\Program Files (x86)\Software\Softwarename.exe,,SHELL32.DLL#14


Perhaps Nircmd or similar would be easier for you - not sure if it has a shortcut function:

Yes. it seems so http://www.nirsoft.net/utils/nircmd.html


My System SpecsSystem Spec
.


06 Oct 2012   #4

Windows 7 Home Premium
 
 

Thank you SIW2, I will keep that tool handy.
Solved my issues by simply using the options in winrar sfx archive, thanks
My System SpecsSystem Spec
07 Oct 2012   #5

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Does winrar have an option to create shortcuts? That's useful.
My System SpecsSystem Spec
Reply

 Creating a batch script or use a 3rdpartyprogram to create shortcuts




Thread Tools



Similar help and support threads for2: Creating a batch script or use a 3rdpartyprogram to create shortcuts
Thread Forum
How to create batch script to lock workstation then log off. General Discussion
Is there a Script or batch file that can create folders by date range General Discussion
PDF file association REG or Batch Script Software
Advanced Disk Cleanup - Create Shortcuts Without A Batch File! Performance & Maintenance
Batch script to change how applications open from shortcuts General Discussion
Admin privileges in batch script Software
Help me with Batch script! Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:00 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33