1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EXE acting as a shortcut?

Discussion in 'Windows - Software discussion' started by Apples001, Jul 10, 2009.

  1. Apples001

    Apples001 Member

    Joined:
    May 28, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    16
    Can anyone write a simple program that launches

    "C:\Program Files (x86)\MediaMonkey\Mediamonkey.exe"

    and an alternate version that kills

    "C:\Program Files (x86)\Imonkey\imonkey.exe"

    and then proceeds to relaunch it again?

    Or it would be even simpler to point me in the way of something already existing.

    Thanks in advance! :)

    EDIT: Sorry forgot to mention I'm running Windows Vista Home Premium 64-Bit if it matters. Once again thanks to anyone who helps.
     
    Last edited: Jul 10, 2009
  2. somebodyy

    somebodyy Regular member

    Joined:
    Jul 15, 2007
    Messages:
    1,063
    Likes Received:
    0
    Trophy Points:
    46
    Is it possible to do this with .bat file? (command line)
     
  3. XLR83r

    XLR83r Guest

    yup there is ........ type this correctly or copy

    open a notepad....

    @echo off
    start C:\Program Files (x86)\MediaMonkey\Mediamonkey.exe
    taskkill /f imonkey.exe
    REM below I placed the imonkey since you want to launch it again.
    start C:\Program Files (x86)\Imonkey\imonkey.exe
    exit

    save it and make it as launcher.bat
    put it in the startup....(if you like)
    start>all programs>startup
    there it can launch automatically in startup or boot
     
  4. djscoop

    djscoop Active member

    Joined:
    Feb 6, 2003
    Messages:
    4,051
    Likes Received:
    0
    Trophy Points:
    66
    what does @echo off do?
     

Share This Page