Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Newbie
    Overall activity: 0%

    Join Date
    Aug 2008
    Posts
    14
    Liked
    0 times
    Points
    3,142

    Can I automatically restart application by schedule?

    Hello Sir,

    I have some issue with my program that it is always inaccessible for every few hour (application running fine, NOT non-responsible OR crash) so, I need to schedule this software to automatically close and then start it again. For example, close and start again every 1 hour. Is it possible?

    Thanks!

  2. #2
    Administrator
    Overall activity: 61.0%

    Join Date
    Nov 2006
    Location
    Malaysia
    Posts
    9,803
    Liked
    1656 times
    Points
    48,748
    Create a batch script with the command "taskkill /F /IM process.exe" | start C:\path\to\program.exe"

    Set it to run every hour through Scheduled Tasks.

  3. #3
    Experienced User
    Overall activity: 0%

    Join Date
    Oct 2008
    Location
    Malaysia
    Posts
    1,381
    Liked
    0 times
    Points
    14,083
    "Taskkill" command doesn't work with XP Home, so if you have that OS..
    http://www.jakeludington.com/windows_xp/20080724_taskkill_replacement_for_windows_xp_home.html

  4. #4
    Newbie
    Overall activity: 0%

    Join Date
    Aug 2008
    Posts
    14
    Liked
    0 times
    Points
    3,142
    Many thanks for you all!

  5. #5
    Experienced User
    Overall activity: 0%

    Join Date
    Feb 2008
    Location
    Socket LGA 771
    Posts
    1,785
    Liked
    3 times
    Points
    14,465
    Never knew that taskkill isn't present in Home. BTW, who uses the lame Home ?
    Happy To Help

  6. #6
    Administrator
    Overall activity: 61.0%

    Join Date
    Nov 2006
    Location
    Malaysia
    Posts
    9,803
    Liked
    1656 times
    Points
    48,748
    I kept on forgetting that taskkill doesn't work with XP Home

  7. #7
    Experienced User
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    India
    Posts
    2,445
    Liked
    31 times
    Points
    13,499
    XP Home doesn't come with advanced settings like gpedit.msc, taskkil, etc

  8. #8
    Experienced User
    Overall activity: 0%

    Join Date
    Oct 2008
    Location
    Malaysia
    Posts
    1,381
    Liked
    0 times
    Points
    14,083
    Quote Originally Posted by prashanthpai View Post
    Never knew that taskkill isn't present in Home. BTW, who uses the lame Home ?

    Umm, me?

  9. #9
    Newbie
    Overall activity: 0%

    Join Date
    Aug 2008
    Posts
    14
    Liked
    0 times
    Points
    3,142
    Hi Raymond,

    According to your reply. I can't using "|", I need to separate it into 2 line.

    taskkill /F /IM process.exe | start C:\path\to\program.exe >> Not works


    >>Works well
    taskkill /F /IM process.exe
    start C:\path\to\program.exe

    What is the different if I use | instead of using new line? Any benefit? or it is the same?

    Thanks!
    Last edited by Novox; 12-05-2008 at 11:28 PM.

  10. #10
    Experienced User
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    Australia
    Posts
    3,884
    Liked
    0 times
    Points
    20,463
    Quote Originally Posted by xje4bv View Post
    Umm, me?
    i use it as well. only because it came with the computer and i don't wanna have reinstall windows just to get advanced options.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. What is your PC restart time?
    By LizardMan in forum General Forum
    Replies: 3
    Last Post: 03-05-2010, 01:25 PM
  2. Replies: 4
    Last Post: 02-18-2010, 05:53 PM
  3. Replies: 0
    Last Post: 10-11-2009, 01:47 PM
  4. Vista cannot restart using restart button
    By Kazemagic in forum General Forum
    Replies: 11
    Last Post: 04-16-2009, 12:29 PM
  5. Replies: 16
    Last Post: 03-13-2008, 05:38 AM
All times are GMT +8. The time now is 09:32 AM.