-
Member
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 ."
-
Member
do u mean: restart bot after a custom time? if that then I created 3 kind of that
-
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
-
Post Thanks / Like - 1 Thanks
trick2gg (1 members gave Thanks to spodakek for this useful post)
-
Member
Originally Posted by
spodakek
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
-
Post Thanks / Like - 1 Thanks
paynemax14 (1 members gave Thanks to letun9 for this useful post)
-
Originally Posted by
letun9
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
-
Member
Originally Posted by
spodakek
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
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
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
Wow, so complex dude, how about autoit, easy code like this:
can you be more specific ? like more than one program
-
Originally Posted by
trick2gg
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
-
Post Thanks / Like - 1 Thanks
trick2gg (1 members gave Thanks to spodakek for this useful post)
-
Member
Originally Posted by
spodakek
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
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.
-
Member
@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