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 ?

02 Feb 2015   #11
andy15star

Windows 7 64Bit
 
 

Quote   Quote: Originally Posted by DavidE View Post
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


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 System SpecsSystem Spec
.
02 Feb 2015   #12
andy15star

Windows 7 64Bit
 
 

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 System SpecsSystem Spec
02 Feb 2015   #13
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

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 System SpecsSystem Spec
.

02 Feb 2015   #14
andy15star

Windows 7 64Bit
 
 

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


Attached Images
Close then re-open software (or a process) at set intervals ?-capture.jpg Close then re-open software (or a process) at set intervals ?-capture2.jpg 
My System SpecsSystem Spec
02 Feb 2015   #15
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Back in post #5 you stated
Quote:
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 System SpecsSystem Spec
02 Feb 2015   #16
andy15star

Windows 7 64Bit
 
 

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 System SpecsSystem Spec
02 Feb 2015   #17
Callender

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

Quote   Quote: Originally Posted by andy15star View Post
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 System SpecsSystem Spec
02 Feb 2015   #18
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

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 System SpecsSystem Spec
03 Feb 2015   #19
andy15star

Windows 7 64Bit
 
 

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 System SpecsSystem Spec
03 Feb 2015   #20
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Try using the /F (force) option with this command:

taskkill /F /im Jumi.exe
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 07:41.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App