scheduled-tasks

How do you handle scheduled tasks for your websites running on IIS?

I have a website that's running on a Windows server and I'd like to add some scheduled background tasks that perform various duties. For example, the client would like users to receive emails that summarize recent activity on the site. If sending out emails was the only task that needed to be performed, I would probably just set up a s...

windows service vs scheduled task

What are the cons and pros of windows services vs scheduled tasks for running a program repeatedly (e.g. every two minutes)? ...

How to develop a Windows scheduled task?

I need to have a process that compiles daily data into an PDF that will be attached into an email. I have already used MSSQL to send emails in the application being developed and would like to continue to use MSSQL as the email processor. In my research, I have found that this can be achieved by creating a Windows Service. But, since I ...

How do you schedule a daily script run on Windows XP?

I wrote a script in Ruby. I'd like to run it every day at a certain time. How do you do that on a Windows XP system? I poked around on the machine and discovered the "scheduled tasks" control panel, but it doesn't seem to have anything to do with running scripts, as far as I can tell from the options offered by the "wizard". ...

Specifying the running directory for Scheduled Tasks using schtasks.exe

I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the executable was located. On 2008 Environment.CurrentDirectory (C#) reports that it's running in C:\Windows\System32. How do I set the running directory? I'm using schtasks....

.NET create scheduled task on server fails with E_ACCESSDENIED

Hello all, I have an ASP.NET website (in C#) that takes in user data and then attempts to create a windows scheduled task. Of course, this works great on the DEV machine, but fails to run on the server. I'm trying to figure out what permission(s) are required on the ASPNET user (or anonymous web user) to create tasks. The error is: ...

automatically running an access macro

Hello, I have an access macro, that I want to run automatically from a batch file which will be scheduled with windows scheduled tasks. At the moment however the batch file will not continue until I close the access window after it is finished. Is there a way to get access to do this silently? The line I am using is "c:\Programme\Mic...

Programmatically Creating a Scheduled Task in Windows - 0x8004130f Error

I am having major problems getting a scheduled task to run. The task is created fine using the ITaskScheduler interface provided by Microsoft. The task is set to run only if a user is logged on. The problem is that the task does NOT run and the log file SchedLgU.txt cites the reason as being: "The attempt to retrieve account informatio...

Error when impersonating a user in .NET in a scheduled task

I have a .NET console app running on Windows Server 2003, as a scheduled task. This uses the Process class to run another little console app, but it uses Process.StartInfo.Username to impersonate a user to run it as. If the account that is impersonated in the scheduled task in an Administrator, then it works perfectly, but if not then ...

How can I schedule a daily backup with SQL Server Express?

I'm running a small web application with SQL server express (2005) as backend. I can create a backup with a SQL script, however, I'd like to schedule this on a daily basis. As extra option (should-have) I'd like to keep only the last X backups (for space-saving reasons obviously) Any pointers? [edit] SQL server agent is unavailable in ...

Browse Files Server-side in ASP.NET

I'm creating an ASP.NET web application to schedule tasks on our server from a remote location using a .NET Wrapper for Scheduled Tasks. However, I'm stuck. The user needs to be able to browse the file system on the server to retrieve a "file to run" for the new task that the user's creating in this application. I need to get the file...

Using schtasks from the command line, what parameter will wake the computer from sleep and execute the task

The option exists in the UI, but not in the help displayed in the command line. ...

How might I schedule a C# Windows Service to perform a task daily?

I have a service written in C# (.NET 1.1) and want it to perform some cleanup actions at midnight every night. I have to keep all code contained within the service, so what's the easiest way to accomplish this? Use of Thread.Sleep() and checking for the time rolling over? ...

running a php task every 24 hours

Hi, I have some functions that use curl to pull information off a couple of sites and insert them into my database. I was just wondering what is the best way to go about executing this task every 24 hours? I am running off windows now, but will probably switch to linux once I am live (if that makes a difference). I am working inside sy...

ASP.Net:Best way to run scheduled tasks

Today we have built an console application for running scheduled tasks for our ASP.NET website. But I think this appoach is a bit error prone and difficult to maintain. How do you execute you scheduled task (in an windows/IIS/ASP.NET env.) Update: Examples of tasks: Sending email from an emial-queue in the database Removing utdated ...

What is the best way to schedule a sending-email task with Ruby on Rails?

hi, I would like to schedule a daily task : every day at 7am, I want an email to be sent (without human intervention). I'm working on the RoR framework and I'm wondering what is the best way to do that? I've heard about BackgrounDRB, OpenWFEru scheduler or things based on Cron, but I'm a newbie and don't understand which one is made f...

Multithreaded job queue manager

I need to manage CPU-heavy multitaskable jobs in an interactive application. Just as background, my specific application is an engineering design interface. As a user tweaks different parameters and options to a model, multiple simulations are run in the background and results displayed as they complete, likely even as the user is still...

Get last run date of task in Windows Scheduled Tasks from ASP.NET

Is it possible to get the last run date of a scheduled task in Windows Scheduled Tasks from ASP.NET? Ideally, it would be good to be able to list, start and stop these tasks as well, though at this stage, the main thing I'd like to do is retrieve the last run time for a specific scheduled task. If this is not possible, my workaround is...

Ruby win32ole - how to pass a VARIANT parameter?

I am trying to automate the Windows Task Scheduler using Ruby. I am using Ruby 1.8 under Windows Vista. The RegisterTaskDefintion method of the TaskFolder object takes two VARIANT parameters for the username and password. Any attempt to pass a string into these parameters results in a 'method_missing' exception: This does not work: r...

Django - Set Up A Scheduled Job?

I've been working on a web app using Django, and I'm curious if there is a way to schedule a job to run periodically. Basically I just want to run through the database and make some calculations/updates on an automatic, regular basis, but I can't seem to find any documentation on doing this. Does anyone know how to set this up? To cl...