Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2013, 07:39 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default Run some code based on time without user interaction

Hi - Has anybody got a way to run some code based on time without any user interaction? EG at 7pm each night some regular ASP/VBScript code runs.

I am being told a windows scheduled task may not be an option because of a SOE restriction. My approach to this was going to be Scheduled task opens a browser which runs the code and then the browser closes it self.

If a windows task is not an option does any body have an idea how this could be achieved?

TYIA
__________________
Wind is your friend
Matt
 
Old November 15th, 2013, 05:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Matt,

Long time no speak ;-)

Not sure what an SOE restriction is, but a schedule task is indeed often the best way. Write an executable, or a VB Script or something like that that invokes an HTTP request (something along the lines of this: http://stackoverflow.com/questions/2...ttp-get-in-vbs).

This would require only a few lines of code and offer the best reliability and reporting.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 17th, 2013, 05:51 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Hi Imar - Yes a very long time! OK, so I will assume what I suspected, there isn't a way to get this done without user interaction in our pure classic ASP world? I have proposed a scheduled task and are waiting to hear back, hopefully its allowed. I have done this before by writing a very basic console application using .net, the exe if fired by the task....

Off topic - There is not much Classic ASP action here at p2p any longer.... Unfortunately due to the constant demand in my current role (11 years) for classic ASP my .net/c# has not had a chance to get the 'real job fluidity' it should have. A few weeks ago I was re-trenched, there is officially only 1 classic ASP job in the whole of Sydney. Times have changed....
__________________
Wind is your friend
Matt
 
Old November 17th, 2013, 07:15 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
A few weeks ago I was re-trenched, there is officially only 1 classic ASP job in the whole of Sydney. Times have changed....
Oh no! Sorry to hear that.

If you contact me off-list (through http://imar.spaanjaars.com/contact for example) and provide me with your contact details, I can provide you with a copy of Beginning ASP.NET 4.5 or my upcoming Beginning ASP.NET 4.5.1 when it comes out so you can get up-to-date with ASP.NET Web Forms again.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding User Forms at Run time RichRansom BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 May 30th, 2008 11:49 AM
Getting a Run-Time Error with this code.. Smythe Access VBA 2 May 28th, 2006 07:06 PM
User interaction... Don Herman Access 3 January 31st, 2006 08:48 AM
web based programming and hardware interaction HumaMunir Pro Java 2 November 16th, 2005 04:43 PM
Run-time code execution module0000 Beginning VB 6 1 June 20th, 2003 04:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.