Need Auto restart batch file/program on set time menu

User Tag List

Results 1 to 9 of 9
  1. #1
    trick2gg's Avatar Member
    Reputation
    5
    Join Date
    Jul 2016
    Posts
    72
    Thanks G/R
    8/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Auto restart batch file/program on set time

    Is there anyone can share that could auto restart files in custom time ?
    like "auto close and resart 2 program in 15 minutes ."

    Need Auto restart batch file/program on set time
  2. #2
    letun9's Avatar Member
    Reputation
    3
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do u mean: restart bot after a custom time? if that then I created 3 kind of that

  3. #3
    spodakek's Avatar Contributor Authenticator enabled
    Reputation
    98
    Join Date
    Jul 2016
    Posts
    232
    Thanks G/R
    15/86
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    @ECHO OFF
    
    :start
    echo|set /p= Launching Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Launching Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Launching Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    
    :askRestart
    SET /p restart= Would you like to restart the bots every fixed interval? (Y/N): 
    IF /i "%restart%" == "Y" GOTO :setRestart
    IF /i "%restart%" == "N" GOTO :noRestart
    
    :setRestart
    SET /p resInt= Please set a restart interval (seconds):
    echo|set /p= The bots will now restart every %resInt% seconds.
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :noRestart
    @ECHO You may now exit this program...
    GOTO :End
    
    :Restart
    @ECHO Closing all bots...
    TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
    @ECHO ------------------------------
    echo|set /p= Restarting Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Restarting Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Restarting Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :End
    PAUSE
    CLS
    This was the batch program I hastily wrote when the initial bots first came out and crashed every hour or so.
    The latest bots are all stable and can run long hours without problems, but anyway if you do need it, edit the necessary fields to your own preferences.
    It will allow you to set a restart interval in seconds.
    Copy the code above, paste it in a notepad and save the file with .bat extension.
    Facing problems with your bot? Check out this thread for possible solutions:
    https://www.ownedcore.com/forums/pokemon-go/pokemon-go-hacks-cheats/564223-compilation-common-errors-solutionss.html

  4. Thanks trick2gg (1 members gave Thanks to spodakek for this useful post)
  5. #4
    letun9's Avatar Member
    Reputation
    3
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spodakek View Post
    Code:
    @ECHO OFF
    
    :start
    echo|set /p= Launching Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Launching Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Launching Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    
    :askRestart
    SET /p restart= Would you like to restart the bots every fixed interval? (Y/N): 
    IF /i "%restart%" == "Y" GOTO :setRestart
    IF /i "%restart%" == "N" GOTO :noRestart
    
    :setRestart
    SET /p resInt= Please set a restart interval (seconds):
    echo|set /p= The bots will now restart every %resInt% seconds.
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :noRestart
    @ECHO You may now exit this program...
    GOTO :End
    
    :Restart
    @ECHO Closing all bots...
    TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
    @ECHO ------------------------------
    echo|set /p= Restarting Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Restarting Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Restarting Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :End
    PAUSE
    CLS
    This was the batch program I hastily wrote when the initial bots first came out and crashed every hour or so.
    The latest bots are all stable and can run long hours without problems, but anyway if you do need it, edit the necessary fields to your own preferences.
    It will allow you to set a restart interval in seconds.
    Copy the code above, paste it in a notepad and save the file with .bat extension.
    Wow, so complex dude, how about autoit, easy code like this:
    While 1
    $PID = Run ("C:\Users\HP\Desktop\PokeColorV7\PokemonGo.RocketAPI.Console.exe")
    Sleep(60000)
    ProcessClose($PID)
    Sleep(10000)
    WEnd

  6. Thanks paynemax14 (1 members gave Thanks to letun9 for this useful post)
  7. #5
    spodakek's Avatar Contributor Authenticator enabled
    Reputation
    98
    Join Date
    Jul 2016
    Posts
    232
    Thanks G/R
    15/86
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by letun9 View Post
    Wow, so complex dude, how about autoit, easy code like this:
    Sure, there are several third-party scripting softwares out there that can perform the same task but I prefer to stick with batch.
    I'm just posting that because OP specifically asked for batch file with custom interval for several programs.
    Facing problems with your bot? Check out this thread for possible solutions:
    https://www.ownedcore.com/forums/pokemon-go/pokemon-go-hacks-cheats/564223-compilation-common-errors-solutionss.html

  8. #6
    trick2gg's Avatar Member
    Reputation
    5
    Join Date
    Jul 2016
    Posts
    72
    Thanks G/R
    8/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spodakek View Post
    Sure, there are several third-party scripting softwares out there that can perform the same task but I prefer to stick with batch.
    I'm just posting that because OP specifically asked for batch file with custom interval for several programs.
    Originally Posted by spodakek View Post
    Code:
    @ECHO OFF
    
    :start
    echo|set /p= Launching Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Launching Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Launching Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    
    :askRestart
    SET /p restart= Would you like to restart the bots every fixed interval? (Y/N): 
    IF /i "%restart%" == "Y" GOTO :setRestart
    IF /i "%restart%" == "N" GOTO :noRestart
    
    :setRestart
    SET /p resInt= Please set a restart interval (seconds):
    echo|set /p= The bots will now restart every %resInt% seconds.
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :noRestart
    @ECHO You may now exit this program...
    GOTO :End
    
    :Restart
    @ECHO Closing all bots...
    TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
    @ECHO ------------------------------
    echo|set /p= Restarting Bot A...
    START /min "Bot A" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------
    echo|set /p= Restarting Bot B...
    START /min "Bot B" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T 5
    @ECHO ------------------------------ 
    echo|set /p= Restarting Bot C...
    START /min "Bot C" "C:\<YOURDIRECTORY>\PokemonGo.RocketAPI.Console.exe"
    TIMEOUT /T %resInt%
    @ECHO ------------------------------
    GOTO :Restart
    
    :End
    PAUSE
    CLS
    This was the batch program I hastily wrote when the initial bots first came out and crashed every hour or so.
    The latest bots are all stable and can run long hours without problems, but anyway if you do need it, edit the necessary fields to your own preferences.
    It will allow you to set a restart interval in seconds.
    Copy the code above, paste it in a notepad and save the file with .bat extension.

    thanks mate

    Originally Posted by spodakek View Post
    Sure, there are several third-party scripting softwares out there that can perform the same task but I prefer to stick with batch.
    I'm just posting that because OP specifically asked for batch file with custom interval for several programs.
    Originally Posted by letun9 View Post
    Wow, so complex dude, how about autoit, easy code like this:
    can you be more specific ? like more than one program

  9. #7
    spodakek's Avatar Contributor Authenticator enabled
    Reputation
    98
    Join Date
    Jul 2016
    Posts
    232
    Thanks G/R
    15/86
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by trick2gg View Post
    can you be more specific ? like more than one program
    Specific in what sense? The code above is written for 3 bots, if you need help trimming it down to 2 and customizing it let me know, I'll help you over PM
    Facing problems with your bot? Check out this thread for possible solutions:
    https://www.ownedcore.com/forums/pokemon-go/pokemon-go-hacks-cheats/564223-compilation-common-errors-solutionss.html

  10. Thanks trick2gg (1 members gave Thanks to spodakek for this useful post)
  11. #8
    trick2gg's Avatar Member
    Reputation
    5
    Join Date
    Jul 2016
    Posts
    72
    Thanks G/R
    8/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spodakek View Post
    Sure, there are several third-party scripting softwares out there that can perform the same task but I prefer to stick with batch.
    I'm just posting that because OP specifically asked for batch file with custom interval for several programs.
    Originally Posted by spodakek View Post
    Specific in what sense? The code above is written for 3 bots, if you need help trimming it down to 2 and customizing it let me know, I'll help you over PM
    worked 100% thanks
    Last edited by trick2gg; 07-26-2016 at 06:16 AM.

  12. #9
    moas90's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    1
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @echo off
    tittle POKEMON GO BOT AUTORESTART


    :loop

    cls
    echo ============================================================
    echo POKEMON GO BOT AUTORESTART
    echo ============================================================
    echo[
    echo Please do not close this window
    echo[

    taskkill /f /im PokemonGo.RocketAPI.Console.exe >NUL

    start <YOURDIRECTORY> >NUL
    start <YOURDIRECTORY> >NUL

    timeout 3600

    goto loop

Similar Threads

  1. [Request] help with botcontrol.batch file for auto restart accounts
    By Dictionary in forum Pokemon GO Chat
    Replies: 3
    Last Post: 08-15-2016, 04:29 PM
  2. Auto realmlist setting batch file
    By einhornchen in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 01-23-2009, 10:54 AM
  3. [Program] Glider batch file creator
    By Frankymouse in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 06-06-2008, 07:39 PM
  4. Need a server auto restarter and...
    By 30480 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 09-09-2007, 02:23 AM
All times are GMT -5. The time now is 05:09 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search