Solved

How to run .aspx page every hour.

Posted on 2013-11-05
4
328 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

14 Experts available now in Live!

Get 1:1 Help Now