Automatic Program Restarter

Status
This thread has been locked.

Khoomn

Premium
Feedback score
11
Posts
140
Reactions
78
Resources
0
So I'm currently having a problem with a program I own from a dev here but he stopped working on these kinds of programs months ago and won't help, not saying its his fault as it has worked for almost a year now but recently stopped.

There is a feature in the program that automatically internally restarts the program if it reaches a certain minimum. Recently its been hitting that minimum and not restarting at all. I was wondering if anyone knew a program or way on how to have the program restart externally ex. the program hits a timer limit of say 30m, it then closes the task and opens a new iteration of it from the file origin.

Another ex is that the file is a .bat file so here. I open the program and after a 30m time quota it closes that .bat file and then goes to the file origin and opens another .bat file. I am running this bat file on a 1 core 1 gb ram amazon ec2 vps so the program is going to need to be very light
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Tommy W

Professional Noddle
Deactivated
Feedback score
31
Posts
974
Reactions
475
Resources
0
First bat file:
title abcdefg
[INSERT CODE HERE]

Second bat file:
:a
timeout -t 1800
powershell Stop-Process -Name "abcdefg" -Force
cmd.exe /k firstbatfile.bat
goto a
 
Status
This thread has been locked.
Top