Well-Known Member

i want to create a batch file that can kill a process (program) and re-run it every half hour.

Detail problem :

I have my download rig connected to Lan for internet. It uses a client software to login. Often due to power failure in between somewhere, the net is down. As soon as the power is up, my client gets disconnected reason "Idle Time Out"

There is no way to change this setting. Only feasible solution seems to create a batch file that kills the program and then re-run it every half an hour. Since i dont know how to write it, can somebody help.... I would be very thankful....

New Member

Getting an idea from the start up trick super_saiyan was referring to. I wondered if we could make that DOWNLOAD application a windows service, so that windows automatically takes care of starting it and killing if there was some problem. After some googling i found this tool

I am sure this is userfriendly.

after installation

in the tool,

create new service

type the serive name, select the application to run

then goto settings tab.

logon tab,

Check Interact with desktop

service lifecycle,

start type select AUTOMATIC

upon pgm exit : Restart the pgm

Install.

Now open services from admin tools (control panel)

You should be able to see the service u just created.

Select the service -> properties

goto recovery tab.

Select Restart the service option under all failure conditions.

Now one more important thing to note

Give the time to restart the service(in ur case 30 minutes)

You are done.

Enjoy!

I Wrote these steps in haste... and i gotta cram now..

Just play with the options to set it right. ( Even i just checked this app for the first time)

New Member

Well-Known Member

i tried to find a batch to killa program using the image name as mention above....after that i used a scheduler to run the batch file once every 30 mins and then the program on the 31st minute.

Restrating PC cannot be done coz, if i can kill the program and restart it, my download hardly gets affected, hence looking for the same.

_____________
Tried the stuff.... the idea is really good but i think my client uses some parameters hence giving error that it is curropt and reinstall, but when u manually click it, its starting rpoperly....

Also the programs App-as-Service is a 14 day trial, so does that means creating service using it will run only for 14 days....

I have seen somewhere over the net that u can make any exe run as service....will search on it... but how to find the prameters....

or can u please write a small code that restarts the service every half hour, although keep the program directory and time to restart as changeable....
Would be thankful to you...

But all that after ur exams... so get back to study... BEST OF LUCK...

Well-Known Member

U download client gives time out error or is it ur internet client software?

I had a problem with one of my servers. The ISP used to disconnect me if the connection was not used after sometime. So i wrote some script to take care of that. So if ur problem is similar let me know.

Well-Known Member

U download client gives time out error or is it ur internet client software?

I had a problem with one of my servers. The ISP used to disconnect me if the connection was not used after sometime. So i wrote some script to take care of that. So if ur problem is similar let me know.

the problem is with my internet client software, it gives me the reason " YOU HAVE BEEN DISCONECTED BY ADMINISTRATOR : REASON IDLE TIME OUT"... all i need is a program that kills the process and starts the program every 30 minutes....

also jayken, given the software as zip for u to try out..... in my previous post....its very common software used many places in mumbai for cable internet connection using lan.....