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

Ceesol

New member
Local time
1:10 PM
Messages
6
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

OS
Windows 7 Home Premium
Still looking for a solution! :)
 

My Computer

OS
Windows 7 Home Premium
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

View attachment 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:

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
Thank you SIW2, I will keep that tool handy.
Solved my issues by simply using the options in winrar sfx archive, thanks :)
 

My Computer

OS
Windows 7 Home Premium
Does winrar have an option to create shortcuts? That's useful.
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
Back
Top