Click to See Complete Forum and Search --> : batch file for starting application


lsy
November 1st, 2007, 05:31 AM
how can i create a loop file to keep loop start application, if the application is close restart it... but only 1 instance of application running at a time.
how the loop script look like?

PeejAvery
November 1st, 2007, 07:37 AM
[ moved ]

PeejAvery
November 1st, 2007, 07:38 AM
First, no script can detect any running instances of processes. Therefore what you want cannot be done with scripting. I would suggest Visual Basic 6. It would be very easy to accomplish.

Second, even if it would be possible with a script, creating a loop to run for x amount of time would tie down your processor. You would not want this. A simple timer in VB6 would handle this for you.

lsy
November 1st, 2007, 11:37 PM
First, no script can detect any running instances of processes. Therefore what you want cannot be done with scripting. I would suggest Visual Basic 6. It would be very easy to accomplish.

Second, even if it would be possible with a script, creating a loop to run for x amount of time would tie down your processor. You would not want this. A simple timer in VB6 would handle this for you.

so any other i can use to keep my program running? other than windows schedular task as well...

PeejAvery
November 2nd, 2007, 07:33 AM
I mentioned Visual Basic 6 twice in my previous post. To learn enough to accomplish what you want would take about an hour.