473,782 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automating a task

Tom
I have an ASP application which includes an asp page which
processes a user submitted file. I would like to
automate the process so the server scans the directory
every 5 minutes and processes any files in the directory.
I would like to 'reuse' the existing logic in the asp
page. How can I create a server process to do this?
The closest I can figure out is to hook the logic into a
application/session start logic in global.asa where it
would run everytime a new session was started, but I would
like it to run like a cron job every 5 minutes.

Background:
I now have a vb application which is submitting the files
and have no way to kick off the server processing logic.
I am using asp 3.0 and am trying to avoid creating a
webservice. I want to use the existing asp page since it
is using 3rd party proprietary com objects.

TIA
Jul 19 '05 #1
2 1539
Here is an article about such a thing:
http://www.aspfaq.com/show.asp?id=2143

Ray at home

"Tom" <an*******@disc ussions.microso ft.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
I have an ASP application which includes an asp page which
processes a user submitted file. I would like to
automate the process so the server scans the directory
every 5 minutes and processes any files in the directory.
I would like to 'reuse' the existing logic in the asp
page. How can I create a server process to do this?
The closest I can figure out is to hook the logic into a
application/session start logic in global.asa where it
would run everytime a new session was started, but I would
like it to run like a cron job every 5 minutes.

Background:
I now have a vb application which is submitting the files
and have no way to kick off the server processing logic.
I am using asp 3.0 and am trying to avoid creating a
webservice. I want to use the existing asp page since it
is using 3rd party proprietary com objects.

TIA

Jul 19 '05 #2
Tom
Thanks. This is great!!!

-----Original Message-----
Here is an article about such a thing:
http://www.aspfaq.com/show.asp?id=2143

Ray at home

"Tom" <an*******@disc ussions.microso ft.com> wrote in messagenews:01******* *************** ******@phx.gbl. ..
I have an ASP application which includes an asp page which processes a user submitted file. I would like to
automate the process so the server scans the directory
every 5 minutes and processes any files in the directory. I would like to 'reuse' the existing logic in the asp
page. How can I create a server process to do this?
The closest I can figure out is to hook the logic into a
application/session start logic in global.asa where it
would run everytime a new session was started, but I would like it to run like a cron job every 5 minutes.

Background:
I now have a vb application which is submitting the files and have no way to kick off the server processing logic.
I am using asp 3.0 and am trying to avoid creating a
webservice. I want to use the existing asp page since it is using 3rd party proprietary com objects.

TIA

.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4342
by: Charles Banas | last post by:
weird subject - i hope more than just one curious regular will hear me out. :) ok, i've got a bit of a big problem, and i need answers as soon as possible. i know this forum is meant for web developers, but is relevant discussion. i'm not OT here unless someone thinks i'm trolling (which i'm not, obviously). then i'll disappear and never show my face again. :P
7
2630
by: xzzy | last post by:
I need to automate a report in a different database (and thank yous to Terry Kreft for pointing me in the right direction). below is the code with the one line that does not work, marked: 'Does not Work' It appears that the type of object returned from the "AllReports" collection is not a report object. =>> I need it to be an object of type report.
1
1441
by: Mark | last post by:
Hi all and thanks in advance, I have a frontend/backend scenario where the backend has a tendency to bloat quit a lot over a period of about 5 days. Once compacted, there is not problem but it needs to be done on a regular basis. From the administrator form, I can set the value of a field within the backend so that every minute, the main form of the database queries the value within this field and if it meets a certain criteria, a pop-up...
4
3232
by: Supa Hoopsa | last post by:
I am in the process of rewriting an MS Access application (access front end with SQL 2k database) in VB.NET and one of the things I would like to do is link in to the compiled Access ADE so that I can use the reports that have already been created. I have somewhere in the region of 200 reports already created in MS Access and I really don't want to have to create new ones. I have successfully linked to the Access ADP, but would really like to...
17
3371
by: Franc Zabkar | last post by:
My D-Link DSL-302G modem/router has a real-time clock whose settings are volatile. To avoid hand keying the date/time via the modem's JS interface, I wonder if there is a way to copy the JS code to the hard drive and modify it to automatically retrieve the PC's date/time. I could then add the hacked JS page to my browser's bookmarks. I've already successfully modified and adapted other modem menus, but I don't know how to go about this...
4
1262
by: Noozer | last post by:
I know ASP isn't the best way to do this, but is it possible??? I've written an application in ASP that manipulates an MS SQL database. We'd like to have our application automatically backup the database at specific times. We'd also like to generate an email report once a day on the statics of our database. Is this possible with ASP? How else could it be done, considering our application is all HTML/ASP?
4
1625
by: access-newb | last post by:
Just started working in Access, and while I'm fairly confident in the basics, or so I think, anything advanced doesn't work too well. I've got a task I know should be easy to automate, but I don't know how to. If someone could point me in the right direction it would be wonderful. I've got 35 tables to create by running a query that filters a table based on two criteria, and then names them based on the criteria used. I have a table of...
1
1325
by: richard | last post by:
http://safer.fmcsa.dot.gov/CompanySnapshot.aspx From this site I hope I can obtain some basic information I need for a website. I have contacted them for assistance but nothing has been offered from them so far. Please advise as to what group might be more appropriate. As it is now, I have to enter each individual number in order to obtain the
2
1357
by: Dave | last post by:
I have to download files every day from a web based application and it's getting very repetitious. I would like to find a way to automate the task. What I have to do each day is go to a website that starts with a login screen. After logging in, the web application takes me to a page with about 20 selection buttons. I have to start with the first selection. That takes me to another page. That page has a menu bar across the top. I have...
6
1414
by: =?Utf-8?B?QWRyaWFuIEpvbmVz?= | last post by:
Hi, I need to regularly check an FTP folder for the presence of a file, and if found, run a routine. Given that this is all on our ISP's servers, what is the best way to automate such a routine in ASP.NET? The end target of the routine is likely to be a MySQL database. If we were using SQL Server, I assume I could use DTS to trigger the process, but I'm
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.