Solved

How to run .aspx page every hour.

Posted on 2013-11-05
4
335 Views
Last Modified: 2013-11-26
Hi experts,

I am writing an application that needs to read an excel file once an hour.  The excel file is created by another piece of software and is written to a folder.  My app has rights to this folder.

My app would read and process the file.  I can do this if I initiate the action by opening the .aspx page but I need it to run every hour regardless if the page is hit or not.  I am reading about windows services.  I have no idea how to do this.

Is this the answer, create a windows service? If so could someone help me with how to do this, even where to do it? Is there another way?

Thanks for any help

Vince
0
Comment
Question by:vstack
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 39625672
I think you want a file watcher service which should theoretically check to see if the file is modified and then run your application.

http://www.codeproject.com/Articles/18521/How-to-implement-a-simple-filewatcher-Windows-serv

You could also create a simple service that works the same way but on a timed basis. There are literally tons of examples out there:

http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx
0
 

Author Comment

by:vstack
ID: 39626454
Thank you. I will take a look at this. I am in the Middle East time zone.
0
 

Author Comment

by:vstack
ID: 39678776
Thanks, the  code project link: http://www.codeproject.com/Articles/18521/How-to-implement-a-simple-filewatcher-Windows-serv

helped me find a solution.
0
 

Author Closing Comment

by:vstack
ID: 39678777
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.

713 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