The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    HELP: Open two programs with one shortcut

    Discussion in 'Windows OS and Software' started by cooljerk_dv, Jul 31, 2006.

  1. cooljerk_dv

    cooljerk_dv Notebook Geek

    Reputations:
    2
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    0
    hey, I'm looking for help creating a shortcut that can open two or more other shortcuts at the same time

    I have a couple old games that I use nhancer to force full quality on (AA/AF), but I really don't want to start nhancer each time I want to play on of these games, nor do I feel like having it start with windows just for these few games.

    so I would like to create a shortcut/batch to open nhancer, and open the game of my choice at the same time

    here is an example:

    "C:\Program Files\KSE\nHancer 32bit\nHancer.exe" /tray
    "C:\Program Files\EA Games\Battlefield 1942\BF1942.exe" +game XPack2

    I can make a batch that starts just the 2 .exes, but getting the parameters to work are another question. The parameter on nhancer just minimizes it to a tray, which I want, and the +game xpack2 loads the expansion for bf1942.

    Can someone please show me how to create a single shortcut that can load these two strings correctly.

    Thanks
     
  2. teamkillahilla

    teamkillahilla Notebook Evangelist

    Reputations:
    10
    Messages:
    381
    Likes Received:
    0
    Trophy Points:
    30
    to my understanding you can provide the parameters inside the .bat file
     
  3. cooljerk_dv

    cooljerk_dv Notebook Geek

    Reputations:
    2
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    0
    ok, then how do I add said parameters to the bat file please
     
  4. Elminst

    Elminst Some Network Guy

    Reputations:
    224
    Messages:
    827
    Likes Received:
    3
    Trophy Points:
    31
    I think just by making a batch that contains those lines that you put up there it would work.
     
  5. lmychajluk

    lmychajluk Notebook Evangelist

    Reputations:
    31
    Messages:
    595
    Likes Received:
    0
    Trophy Points:
    30
    I get the feeling he doesn't know how to create the bat file.

    Create a text file, copy the two lines into it (you may want to add an 'Exit' at the end), and save it with a .BAT extension, not TXT. Double-clicking it will execute all the commands in order, or you can make a shortcut to the BAT file.
     
  6. germancasaretto

    germancasaretto Notebook Geek NBR Reviewer

    Reputations:
    0
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    15
    Here's an example of adding parameters to a shortcut:

    H:\Apps\FPA\BIN\SBK32.exe -SPROD

    -SPROD will be the parameter.

    Hope this'll help you.
     
  7. yellowalias

    yellowalias Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    hi all

    I have a question:
    Is there a way to make the second program run with a time delay??

    if so, how?

    thanks!!

    EDIT:
    I figured out the answer, and i'm including it here in case anyone else is interested.


    I am using Windows Vista, and this worked for me.
    I am also using .bat to execute my shortcuts.

    Lets say I wanted to start yahoo messenger, and ten seconds later to start windows media player.

    First of all, using notepad, you have to save these commands:
    @ping 127.0.0.1 -n 2 -w 1000 > nul
    @ping 127.0.0.1 -n %1% -w 1000> nul

    and call the file WAIT.bat

    Then you open a new document and input:
    @echo off
    start "" "C:\Program Files\Yahoo!\Messenger\YahooMessenger.ex...
    CALL WAIT 10
    start "" "C:\Program Files\Windows Media Player\wmplayer.exe"

    the important part is to write the CALL WAIT 10 in between the two programs. When you save this file, name it whatever you want, just remember to save it as a *.bat

    this works for me!

    ~~~~
    Another option is to download the windows resource kit that allows you to do the same thing using a sleep command, supposedly it is simpler than doing all the work outlined above.
    http://malektips.com/xp_dos_0002.html
     
  8. orev

    orev Notebook Virtuoso

    Reputations:
    809
    Messages:
    2,829
    Likes Received:
    1
    Trophy Points:
    56
    Blahrgh!!! Curse Microsoft for STILL not including a "sleep" command!!
     
  9. jimc

    jimc Notebook Consultant

    Reputations:
    130
    Messages:
    269
    Likes Received:
    0
    Trophy Points:
    30
    There is a "timeout" command though which does the same thing
    will wait for 10 seconds
     
  10. orev

    orev Notebook Virtuoso

    Reputations:
    809
    Messages:
    2,829
    Likes Received:
    1
    Trophy Points:
    56
    Excellent!