Custom Launch.bat File (windows)

Discussion in 'Bukkit Tools' started by cato11112, Feb 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    cato11112

    Hello this is my own custom launch file that i did made. I am only 15 years old and i did manage to make it by my self only my self.

    If you can make it better please send the updated version too me.

    I shall try to make it much better. But for now here is the .bat file

    I only used like 2-5 minutes on all the coding.
    About the program:

    Show Spoiler
    Custom title!
    the CMD file turns red when you use the "/stop" command
    After a stop you can press any buttons to start it again
    Press CTRL+C when it says: "Push CTRL+C to close the console" to close it
    The console goes in loop so newer ending infinite counter
    On every start (not including stopping the server file must be opened) it will ask for jar file name
    If you write the jarfile name wrong it won't start and the cmd will be always red



    Downloads:

    Show Spoiler
    Version 1.0:

    Show Spoiler
    <Edit by Moderator: Redacted mediafire url>

    <Edit by Moderator: Redacted mediafire url>

    <Edit by Moderator: Redacted mediafire url>

    Code:

    Show Spoiler
    Version 1.0: First Release

    Show Spoiler
    Code:
    @echo off
    title JarFile selection (Jar: not selected V: not selected) Server: Configuration
    cls
    echo Please write the jarfile name without .jar
    set /p jarfile="> "
    title Version selection (Jar: %jarfile% V: not selected) Server: Configuration
    cls
    echo Write a version name or just skip it.
    echo If you have multiple servers running this will help
    echo you to identity what server the console belongs too
    set /p version="> "
     
    set /a stops=%stops%+0
    color 07
    [USER=90771833]Echo[/USER] off
    cls
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Running
    java -Xmx1024M -jar %jarfile%.jar -o true
    color 4C
    set /a stops=%stops%+1
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Stopped
    cls
    echo.
    echo Push CTRL+C to close the console
    PAUSE
     
    :start1
    cls
    color 07
    [USER=90771833]Echo[/USER] off
    cls
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Running (stopped %stops% times)
    java -Xmx1024M -jar %jarfile%.jar -o true
    color 4C
    set /a stops=%stops%+1
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Stopped (stopped %stops% times)
    cls
    echo.
    echo Push CTRL+C to close the console
    PAUSE
    cls
     
    if %stops%==10 goto add10
    goto start1
    echo.
    goto ERROR
     
    :start2
    cls
    color 07
    [USER=90771833]Echo[/USER] off
    cls
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Running (stopped %stops% times) Milestone: %stops2% stops
    java -Xmx1024M -jar %jarfile%.jar -o true
    color 4C
    set /a stops=%stops%+1
    title Server Console (Jar: %jarfile%.jar V: %version%) Server: Stopped (stopped %stops% times) Milestone: %stops2% stops
    cls
    echo.
    echo Push CTRL+C to close the console
    PAUSE
    cls
     
    if %stops%==%stops3% goto add10
    goto start2
    end
    goto ERROR
     
    :add10
    set /a stops2=%stops2%+10
    set /a stops3=%stops2%+10
    goto start2
     
    :ERROR
    title ERROR PLEASE CONTACT CONSOLE CREATOR!!!
    cls
    ECHO ERROR PLEASE CONTACT CONSOLE CREATOR!!!
    echo.
    echo [email protected]
    echo.
    echo PRESS CTRL+C TO TERMINATE
    pause >nul
    goto ERROR
     

    Attached Files:

    Last edited by a moderator: Nov 3, 2016
  2. Offline

    Shadow_Absorber

    awsome custom script!
    i took my time to modify it to my own and i realy like it!
    thx for sharing!
     
  3. Offline

    cato11112

    Cool i can get a copy of it so i can what you did?
     
Thread Status:
Not open for further replies.

Share This Page