|26 Sep 2012||#1|
| || |
Creating a batch script or use a 3rdpartyprogram to create shortcuts
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
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
Any advice will be appreciated. thanks in advance..
|My System Specs|
|06 Oct 2012||#3|
| || |
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
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 Specs|
|Similar help and support threads for2: Creating a batch script or use a 3rdpartyprogram to create shortcuts|
|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:34 AM.