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


  1. Posts : 6
    Windows 7 Home Premium
       #1

    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 Computer


  2. Posts : 6
    Windows 7 Home Premium
    Thread Starter
       #2

    Still looking for a solution! :)
      My Computer


  3. Posts : 16,159
    7 X64
       #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

    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
    Last edited by SIW2; 06 Oct 2012 at 20:18.
      My Computers


  4. Posts : 6
    Windows 7 Home Premium
    Thread Starter
       #4

    Thank you SIW2, I will keep that tool handy.
    Solved my issues by simply using the options in winrar sfx archive, thanks :)
      My Computer


  5. Posts : 16,159
    7 X64
       #5

    Does winrar have an option to create shortcuts? That's useful.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About 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 05:50.
Find Us