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
Ceesol

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
Ceesol

Windows 7 Home Premium
 
 

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

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
Ceesol

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
SIW2

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
Thread Forum
Windows 7 creating blank txt file after running a batch script
I have the following batch script @echo off setlocal enableextensions set "baseName=dnshistory" set "count=0" for /f "delims=%baseName%." %%a in (
General Discussion
batch script help
dear all any help to make batch script this the reason i want to make a batch file is to help me update the online games in 60 computers by overwriting or copying big files in one click from 1 source computer... instead of turning on all 60 computers and updating all online games, he'll just...
General Discussion
Is there a Script or batch file that can create folders by date range
I was wondering if there was a way to create a set of folders in a specific directory according to a date range that i input. ie. Select start date 2011 10 01 select end date 2012 10 01 Select Output path of c:\users\XXXX\desktop\export data
General Discussion
Advanced Disk Cleanup - Create Shortcuts Without A Batch File!
Hello 7, This is how to create shortcuts for the Advanced Disk Cleanup feature. I keep mine in my Start Menu :geek: These shortcuts do not require batch files or command window, and they execute immediately. Just follow the steps below! NOTE: You MUST be logged in as an administrator to...
Performance & Maintenance
Batch script to change how applications open from shortcuts
Hi. I have Googled this without success. Does anyone know of a script (or is able to write one?) which will batch convert a folder (+ subfolders) full of shortcuts so that they all open the application they link to (in the case, Microsoft Flight Simulator) in a maximized, not 'normal' window? ...
General Discussion
Help me with Batch script!
Hi, Can somebody assist me with a .bat file I am trying to create? This is what I have now: start /d "C:\Users\Me\Desktop\ghost" ghost.exe start /d "C:\Users\Me\Desktop" Poweroff.exe C:\Windows\System32\powercfg.exe /setactive e428f8a5-615e-488f-b7f7-1ed39450e522The first 2 lines start...
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 00:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App