Solved

Automated ASP script *Urgent*

Posted on 2004-04-27
7
174 Views
Last Modified: 2010-04-13
Maybe a dumb question... and maybe in the wrong forum.

I've got an ASP script I've written ... and I need it to run about every 1 or 5 minutes.  Is the only way to do this a scheduled task to open a specified file?  Or is there a fancier way to run this without doing that?

Thanks so much.
0
Comment
Question by:BeamerCola
  • 4
  • 3
7 Comments
 
LVL 16

Accepted Solution

by:
JamesDS earned 500 total points
ID: 10937442
BeamerCola

If you want it free then yes, use control panel\scheduled tasks or look at the AT.EXE command (does the same thing)

If the ASP script runs on a web server, then you could add a META REDIRECT page header to the top of it and have it call itself after 5 minutes - which would do the same thing.


Cheers

JamesDS
0
 

Author Comment

by:BeamerCola
ID: 10940171
What are my paid options?  And how much?

Thanks so much
Beamer
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10941854
BeamerCola
There are a number of scheduling options. You can look at specific dedicated schedulers, but these are largely the same as the AT command system and are cheap. You can run scripts using monitoring tools, such as Microsoft Operations Manager and BMC patrol - very expensive and overkill for most smaller installations.


Cheers

JamesDS
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:BeamerCola
ID: 10942425
Is it possible to build like a Service or something that does it for me?  I guess what I'm trying to steer away from is having this on the web, and then just opening the browser window to run it.  I'd like for the server to actually run it itself outside of IIS .... if that's even possible.
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10946949
BeamerCola
If its an ASP script then it requires a web server by definition - "Active Server Page".

If its a bit of VB with an ASP/HTML wrapper then it can be converted and run as a VBScript using cscript.EXE or wscript.exe

My advice is convert it to a bit of pure VBScript/JScript and run it using the Task Scheduler service - it will then run in the same way as a service would - almost.

If you want it to be a pure service you will need to look at SRVANY.EXE and SC.EXE from the resource kit. But even if you turn it into a service it will still need converting to pure VBScript/JScript and it will still ned scheduling so you haven't really solved your problem.

Cheers

JamesDS
0
 

Author Comment

by:BeamerCola
ID: 10950663
Alright I'll just go ahead and use it through IIS.  I appreciate all your help.

Beamer
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10950914
BeamerCola
Welcome, glad to help

Cheers

JamesDS
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

26 Experts available now in Live!

Get 1:1 Help Now