Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: How to run 2 programs with Batch Commands

  1. #11
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Ni3ls View Post
    But I can run multiple COD2's on my laptop without this command. Or is it something else?
    Actually, it is something else. After experimenting further, I found out that using allowdupe created some sort of wait time. And it was the wait time that was actually needed - not the expression allowdupe.

    I ended up using this:

    PHP Code:
    @echo off

    set color
    =04e
    color 
    %color%

    mode concols=80 lines=30

    goto START

    :START
    echo __________________________________________________________
    echo.
    echo 
    "  _____                             __  __           _  "
    echo " |  __ \                           |  \/  |         | | "
    echo " | |  | | ___ _ __ ___   ___  _ __ | \  / | ___   __| | "
    echo " | |  | |/ _ \ '_ \` _ \/ _ \| '_ \| |\/| |/ _ \ / _  | "
    echo " | |__| |  __/ | | | | | (_) | | | | |  | | (_) | (_| | "
    echo " |_____/ \___|_| |_| |_|\___/|_| |_|_|  |_|\___/ \__,_| "
    echo "                                                        "
    echo __________________________________________________________

    goto MAKEOPTIONS

    :MAKEOPTIONS
    echo __________________________________________________________
    echo.
    echo  
    Please select an option:
    echo    
    1. Listen Server
    echo    2. Dedicated Server
    echo    3. Developer Server
    echo.
    echo    
    0. Exit
    echo.
    set /p make_option=:
    set make_option=%make_option:~0,1%
    if 
    "%make_option%"=="1" goto LISTEN
    if "%make_option%"=="2" goto DEDICATED
    if "%make_option%"=="3" goto DEVELOPER
    if "%make_option%"=="0" goto END
    goto START


    :LISTEN
    echo.
    echo.
    @echo 
    STARTING COD2 DEMONMOD LISTEN
    @echo off

    cd C
    :\Program Files (x86)\Activision\Call of Duty 2\
    CoD2MP_s.exe +set fs_game mods/demon +exec mp-server.cfg +set sv_punkbuster 0 +map_rotate
    goto END

    :DEDICATED
    echo.
    echo.
    @echo 
    STARTING COD2 DEMOMOD DEDICATED
    @echo off

    cd C
    :\Program Files (x86)\Activision\Call of Duty 2\

    START CoD2MP_s.exe +set fs_game mods/demon +set dedicated 2 +set net_ip 86.26.148.175 +set net_port 28961 +exec mp-server.cfg +set sv_punkbuster 0 +map_rotate

    TIMEOUT 7
    echo.
    echo.
    @echo 
    LAUNCHING CLIENT TO SERVER
    @echo off
    START CoD2MP_s
    .exe +connect 86.26.148.175:28961
    goto END


    :DEVELOPER
    echo.
    echo.
    @echo 
    STARTING COD2 DEMOMOD DEVELOPER
    @echo off

    cd C
    :\Program Files (x86)\Activision\Call of Duty 2\
    CoD2MP_s.exe +set fs_game mods/demon +set developer 1 +set developer_script 1 +exec mp-server.cfg +set sv_punkbuster 0 +map_rotate
    goto END


    :END
    EXIT 

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (11th February 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •