Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Close then re-open software (or a process) at set intervals ?

01 Feb 2015   #1
andy15star

Windows 7 64Bit
 
 
Close then re-open software (or a process) at set intervals ?

Hi, i'm pretty much a novice, so i'm not all that confident with batch scripts etc. But i'm trying to find a way (or freeware) which will enable me to stop a process then restart it at a user defined interval.

I run a piece of software on my PC called JumiCam. It's just basically a piece of software which lets me view our CCTV system when i'm out and about.

I've been having issues with the software lately in that if it has been running a long time it just crashes, but then does not restart itself.

What i'm wanting to do is to force "Jumi.exe" (in task manager) to close and restart itself back up, maybe each hour, on the hour.

Is there an easy way to do this ?

It would be great if i was able to set a certain process to close down at maybe 08:00am, and restart it at maybe 08:02am, or similar.

It sounds very easy, but i haven't found a way to do this yet.


Many Thanks
Andrew


My System SpecsSystem Spec
.
01 Feb 2015   #2
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

I found this free program you can try, ReStartMe.
I've never used it, but i scanned it at VirusTotal and it shows clean.
https://www.virustotal.com/en/file/4...5d8b/analysis/

You can read about it here:
Quickly and Automatically Restart a Windows Program When it Crashes
My System SpecsSystem Spec
01 Feb 2015   #3
Alejandro85

Windows 7 Ultimate x64
 
 

With a batch file together with task scheduler it's easy to do.
First of all create a .bat file somewhere with the following code:
Code:
taskkill /im jumi.exe
c:\program files\jumicam\jumi.exe
This just kills the program in the first line and the second starts it again. For the second line check the real full path to the .exe, I'm just putting that route as an example.

Try running that by hand, the program should restart.
Then, using task scheduler you can set it to run that bat file at any time you want automatically.
My System SpecsSystem Spec
.

01 Feb 2015   #4
andy15star

Windows 7 64Bit
 
 

Thanks DavidE, i've downloaded that software and it seems good. It doesn't allow me to stop/restart it at a user defined time, but it does restart it if it stops, which will be very useful even if it only does that.

Alejandro85, many thanks for that too, i'll find out the exact location of the file on my C:/ drive and give that a try. Sounds promising too.

Thanks very much

Andy
My System SpecsSystem Spec
01 Feb 2015   #5
andy15star

Windows 7 64Bit
 
 

Alejandro85, i've just tried that and nothing happens.

The file location is C:\Program Files (x86)\Jumi.exe

So, i created a new notepad file (and renamed the extension to .bat), and entered the following:

taskkill /im jumi.exe
C:\Program Files (x86)\Jumi.exe

But Jumi didn't close or reopen

Thanks
Andy
My System SpecsSystem Spec
01 Feb 2015   #6
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Andy,
Yea, the program i found only restarts the program if it stops/crashes.
I thought that might accomplish what you really need and is worth trying.

For the BAT file try this:
Code:
taskkill /im Jumi.exe
"C:\Program Files (x86)\Jumi.exe"

pause
The pause statement keeps the CMD window open until you press enter.
That way you can see any errors, and delete the pause statement when the BAT file works.
Can you post a screen print of the CMD window showing errors ?
Screenshots and Files - Upload and Post in Seven Forums
My System SpecsSystem Spec
01 Feb 2015   #7
Alejandro85

Windows 7 Ultimate x64
 
 

One more thing that slipped me before, if the program is run "as administrator", you'll also need to run the bat as administrator.

To debug you may also try to enter the individual commands into the command prompt to see what or why they fail and what each one does.
My System SpecsSystem Spec
01 Feb 2015   #8
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Suggestion

You could try System Scheduler although the service will need to be left running in the background. You could use it to launch your process killing batch file at defined times and launch your problem program a minute or two later.

Easily automate many PC tasks with System Scheduler from Softwarecrew | Software Reviews, News, Tips & Tricks

System Scheduler 4.33 free download - Software reviews, downloads, news, free trials, freeware and full commercial software - Downloadcrew

Website: FREE - System Scheduler, task scheduler alternative for Microsoft Windows.

Note: I've never used this software. You can probably create an elevated shortcut to a batch file so that it runs without prompt.
My System SpecsSystem Spec
01 Feb 2015   #9
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

One thing to consider if using a solution that uses a schedule to stop and restart the program,
If the program crashes after 30 minutes from the last restart, it won't get restarted for another 30 minutes.
That means there will 30 minutes of "black-out" until the next scheduled restart.

If the ReStartMe program proves to be reliable, it will restart the program immediately after a crash at any time.

Is there any real need to stop and restart the program on a pre-defined schedule ?

You could also check event viewer and see if there is an event for the program crashes.
If it is logged, you may be able to find a solution to fix the crashes ???
My System SpecsSystem Spec
01 Feb 2015   #10
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Good advice

Quote   Quote: Originally Posted by DavidE View Post

You could also check event viewer and see if there is an event for the program crashes.
If it is logged, you may be able to find a solution to fix the crashes ???
That's the best answer so far!
My System SpecsSystem Spec
Reply

 Close then re-open software (or a process) at set intervals ?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Open and Close Program
Hi All, I m using windows 7 Ultimate x64 OS. I fond that there is a program running and suddenly it opens and closing. I searched for this and did some remedies. - cancel some start up services. - cancel reporting errors. somethings like that. but the problem didn't solve. can anyone help...
System Security
open explorer, starts new process, close it, process remains active
Hi, I've got a quicklaunch shortcut to: %windir%\explorer.exe shell:::{323CA680-C24D-4099-B94D-446DD2D7249E} That takes me straight to my explorer favourites. What I notice is that when I launch that, I get a new explorer.exe thread appear in the task manager. When I close it though, that...
General Discussion
Game keeps crashing, the process hangs when I close it in task manager
Hi, I've got a laptop with windows home premium 64 bit installed on it and I use it for gaming a lot. It's high spec and there's usually no problem but I've been having problems with guild wars 2. Basically the game crashes a lot. When it crashes, I end the application in task manager but if...
Gaming
iTunes won't re-open once I close it.
I know this has been asked before, but I have tried a number of solutions and I cant seem to fix it. I just formatted my PC, I can clearly remember I did not had this problem before, same OS (Win 7 ultimate 64b), same hardware, etc. I start my pc, and it works fine, but if I close it, somehow...
Software
Make 'close window' button kill the process?
One of the forever most annoying things about Windows, is that if a program stalls and you want to kill it, clicking the 'x' button for closing the window, actually does nothing. Is there a way to make this button forcibly kill the process, without having the wait ages for the "This program...
General Discussion
Waiting For Background Process(es) To Close
..at least I think that's what I seemingly always get on my darkening screen when shutting down Windows 7 and I find it rather annoying. Isn't it stating the obvious? If it lists the processes, which isn't always the case, it doesn't usually give me a chance to close them anyway as the shutdown...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App