scheduled-tasks

How do you schedule tasks in Windows?

I run into a situation every couple of months where I need to develop a solution that's scheduled to run periodically, but I haven't found a way to handle this in Windows that I'm entirely happy with. Every time I do it, I end up feeling corralled into using a Windows Service, which seems to be an unacceptable amount of overhead for som...

Windows 2003 Scheduled Task Cmdlet (v 1.0)

Does anyone know of a powershell cmdlet out there for automating task scheduler in XP/2003? If you've ever tried to work w/ schtasks you know it's pretty painful. ...

"Out of Band" Processing Techiniques for asp.net applications

Jeff has previously blogged about using the cache to perform "out of band" processing on his websites, however I was wondering what other techniques people are using to process these sorts of tasks? ...

Scheduling Windows Mobile apps to run

How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time. The app is a native C/C++ app on Windows Mobile 5.0 or later. ...

PHP: running scheduled jobs (cron jobs)

I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend? What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or not. This is just a quick example of what I was thinking abou...

How can I schedule a job in Sql Agent (Sql Server 2005) via C# code?

Hi I'd like to schedule an existing job in the Sql Server 2005 agent via C# code... i.e. when someone clicks a button on an asp.net web page. How can I do this? Thanks! ...

How do I set a task to run every so often?

How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X. ...

What is the Windows version of cron?

A Google search turned up software that performs the same functions as cron, but nothing built into Windows. I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone. EDIT: Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programat...

GetProcessesByName() and Windows Server 2003 scheduled task

Does anybody know what user privileges are needed for the following code needs to successfully execute as a scheduled task on Windows Server 2003: System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName) When NOT running as scheduled task i.e. under a logged in user, as long as the user is a member of "Pe...

Developing a scheduled task for Windows

I have to develop an application using C#.net that has to be run once a day. It only runs for at most one minute, so developing a Windows service is overkill and a scheduled task is the appropriate way. However, I have a few questions about how the application can communicate its results: How do I indicate to the task scheduler that t...

Graceful handling of dependent scheduled tasks?

Say I've got two scheduled processes: A and B. Given that B should not run until A has completed, how might I gracefully enforce this dependency? Approaches that have been considered: Have A schedule B upon completion. This has the downside of B never being scheduled if for some reason A failed. When B runs, have it ping A to see if ...

Is it possible to automate MS SQL Server (2005) queries via SQL Server Management Studio?

Hi, I have two queries saved on my SQL Server 2005 and I would like to have them running at certain intervals, e.g. every 24 hours. Is there a way to automate these queries and schedule them via SQL Server Management Studio? Thanks for all the help in advance. Ym PS: New here and have intermediate level knowledge of SQL server ...

What is the best method for scheduled tasks in PHP

Title sums it up, I know little about how I will do this. See also: http://stackoverflow.com/questions/120228/php-running-scheduled-jobs-cron-jobs ...

How do I stop/start a scheduled task on a remote computer programatically?

I want to write a script that will stop a scheduled task on a remote computer, do some stuff, and then start the schedule task back up. How can I do it? ...

how to run a php file in schedule task

Hi friends, how to run a php file in schedule task. Yes, i gave every thing in schedule task, but doesn't work. Run : "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website\save.php" start in : "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website" Its just open the php file in notepad. I...

Working with the task scheduler 1.0 COM API

Hello, I'm trying to write a simple program in VC++ which will just initialize the task scheduler. I'm following the example suggested at the MSDN site, but I get unresolved symbol errors from the linker. The error is on this line: hr = CoCreateInstance(CLSID_CTaskScheduler, NULL, ...

powershell exchange : how do you setup a scheduled task to run exchange2007 powershell? (solved)

I'm having trouble setting up a scheduled task (now called Task Scheduler) under the actions tab to run on windows 2007 server. It also has exchange server 2007. I've tried setting Program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add arguments (optional): -psconsolefile exshell.psc1 -command "& {c:\mes-detai...

What is the best way to specify execution time of recurring jobs or tasks?

I am looking for a way of efficiently specifying a recurring job execution time without having to write an explicit execution time to a datastore. In other words, rather than saying 'job x next runs at 13.00pm on 11.12.08' and then having to update the execution time for the following week once the job has run, I want to be able to say '...

method-invoking Spring bean

Hi, I've declared the following bean in my Spring config <bean id="templateCacheClearingTask" class="org.springframework.scheduling.timer.ScheduledTimerTask"> <property name="delay" value="5000" /> <property name="period" value="5000" /> <property name="timerTask"> <bean class="org.springframework.scheduling.timer....

How can I run an app at a specified time on the iPhone?

I'm developing a todo list application. I'm looking for any way to alert the user when a task becomes due, even if the app is not running. Is there any way to set the program to run at a specified time w/out user interaction? Or a way to bring up an alert anyway? Edit: How can I add an item to the calendar? ...