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

Page 1 of 3 123 LastLast

  1. Posts : 9
    Windows 7 64Bit
       #1

    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 Computer


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

    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 Computer


  3. Posts : 2,468
    Windows 7 Ultimate x64
       #3

    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


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

    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


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

    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


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

    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 Computer


  7. Posts : 2,468
    Windows 7 Ultimate x64
       #7

    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


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

    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


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

    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


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

    Good advice


    DavidE said:

    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


 
Page 1 of 3 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 06:42.
Find Us