Solved

Application restart every 5 minutes

Posted on 2010-08-20
3
418 Views
Last Modified: 2012-06-21
Hey I'm running windows server 2008 R2 and I have a .net program a server that I need to close and open every 5 minutes because of a bug that i am unable to fix because my Dev's are away at the moment so I need to somehow make the application restart it self every 5 minutes close and than open. like something that ends it than opens it.

I tryed to use microsoft's Task Scheduler but my Exe file has alot of .ini files and when it opens with task scheduler for some reason it can't find any of its ini files anymore like its running from another location or something.
0
Comment
Question by:yahshuah
3 Comments
 
LVL 2

Accepted Solution

by:
aamsoh earned 500 total points
ID: 33490484
try to make this batch file and add it into your schedule

TASKKILL /F /IM YourApplication.exe
CD\YourApplicationFolder
YourApplication.exe

hope this will help
0
 
LVL 11

Expert Comment

by:mattibutt
ID: 33514175
Create schedule to launch and kill
0
 

Author Closing Comment

by:yahshuah
ID: 33657464
it works
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Back in July, I blogged about how Microsoft's new server pricing model, combined with the end of the Small Business Server package, would result in significant cost increases for many small businesses (see SBS End of Life: Microsoft Punishes Small B…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now