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

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 9
    Windows 7 64Bit
    Thread Starter
       #11

    DavidE said:
    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 Computer


  2. Posts : 9
    Windows 7 64Bit
    Thread Starter
       #12

    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


  3. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #13

    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


  4. Posts : 9
    Windows 7 64Bit
    Thread Starter
       #14

    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 Thumbnails Attached Thumbnails 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 Computer


  5. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #15

    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


  6. Posts : 9
    Windows 7 64Bit
    Thread Starter
       #16

    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


  7. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #17

    Suggestion


    andy15star said:
    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


  8. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #18

    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


  9. Posts : 9
    Windows 7 64Bit
    Thread Starter
       #19

    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


  10. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #20

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

    taskkill /F /im Jumi.exe
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 05:23.
Find Us