Solved

How to run .aspx page every hour.

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

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

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

13 Experts available now in Live!

Get 1:1 Help Now