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

andy15star

New member
Local time
7:43 AM
Messages
9
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
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 ?
http://www.sevenforums.com/tutorials/9733-screenshots-files-upload-post-seven-forums.html
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Good advice

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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
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 ?
http://www.sevenforums.com/tutorials/9733-screenshots-files-upload-post-seven-forums.html



Hi, i've tried this and the batch file says it's not recognized as an internal or external command, operable program or batch file

Regards
Andy
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
Thanks guys, i'll also give System Scheduler a try. I think DavidE is right in what he says, it's probably not necessary to have the program close/restart and 'Restart Me' seems to work flawlessly.

The only reason i was wanting it to close and restart at a user defined interval was for stability issues. Sometimes the jumi.exe file doesn't actually crash, it hangs, and ReStart Me doesn't pick this up. But it does solve my problem for the most part in that i'd say 80% of the time it crashes, and probably only 20% of the time it hangs.


Regards
Andy
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
Which statement gets the "not recognized as an internal or external command ..." error ?
If you have the pause statement in the BAT file, can you post a screen print of the BAT CMD window showing the error(s) ?

Did you look in Event Viewer to see if anything is logged ?

Are you sure Jumi.exe is listed in Task Manager / Processes as an Image Name ?

With your "20% hang" comment, you do have a reason for using a scheduled "kill" task ...
If we can't find a fix for the problem(s), you might be best with a combo of a scheduled task and using ReStartMe...
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Thanks DavidE, below is a screenshot of the .bat file. I've also enclosed a screengrab of the processes (below the batch file screengrab), jumi.exe is listed there as a task.

Yeah i do hope for a solution to the stop/restart issue, but for the time being RestartMe goes a long way in sorting out any crashes on the program
 

Attachments

  • Capture.JPG
    Capture.JPG
    28.3 KB · Views: 6
  • Capture2.JPG
    Capture2.JPG
    15.2 KB · Views: 6

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
Back in post #5 you stated
The file location is C:\Program Files (x86)\Jumi.exe
There is probably a folder missing from that location for the Jumi.exe ...
It's probably something like C:\Program Files (x86)\Jumi\Jumi.exe
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Hmm you have a point DavidE. However, i've just tried it as C:\Program Files (x86)\Jumi\jumi.exe (which is correct), but it does not kill it or reopen it. It appears to close the program (the program minimises off screen), but it does not kill the program (or it's entry in task manager)... I give up :S

Regards,
Andy
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
Suggestion

Hmm you have a point DavidE. However, i've just tried it as C:\Program Files (x86)\Jumi\jumi.exe (which is correct), but it does not kill it or reopen it. It appears to close the program (the program minimises off screen), but it does not kill the program (or it's entry in task manager)... I give up :S

Regards,
Andy

Maybe check your services list. Some programs install a service and it runs in the background all the time.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
It might also be killing and restarting but is not apparent in Task Manager because of timings and displayed info ?

In Task Manager > Processes
Click View > Select Columns...
Select the PID (Process Identifier) column, so you see the PID column in TM.

If the PID changes when you run the BAT file, it has restarted ...
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Hi DavidE, it's definitely not killing it because if i actually 'force' kill it then it takes time to reopen itself and re-establish an internet connection. This takes around 1 minute or so. When i use the batch file it still sits there (although minimised) with a connection throughout.

Best Regards
Andy
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
Windows 7 64Bit
CPU
2.8GHz
Try using the /F (force) option with this command:

taskkill /F /im Jumi.exe
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Back
Top