Why does my Task Scheduler task fail with error 2147942667?

To get the relevant error message: Convert 2147942667 to hex: 8007010B Take last 4 digits (010B) and convert to decimal: 267 In a Command Prompt, run net helpmsg 267 Result: “The directory name is invalid.” The solution for me was that I had quotes in the “Start In” field. I found this information in Microsoft … Read more

How do I set a Windows scheduled task to run in the background? [closed]

As noted by Mattias Nordqvist in the comments below, you can also select the radio button option “Run whether user is logged on or not”. When saving the task, you will be prompted once for the user password. bambams noted that this wouldn’t grant System permissions to the process, and also seems to hide the … Read more

Creating Scheduled Tasks

You can use Task Scheduler Managed Wrapper: using System; using Microsoft.Win32.TaskScheduler; class Program { static void Main(string[] args) { // Get the service on the local machine using (TaskService ts = new TaskService()) { // Create a new task definition and assign properties TaskDefinition td = ts.NewTask(); td.RegistrationInfo.Description = “Does something”; // Create a trigger … Read more

Best way to run scheduled tasks [closed]

This technique by Jeff Atwood for Stackoverflow is the simplest method I’ve come across. It relies on the “cache item removed” callback mechanism build into ASP.NET’s cache system Update: Stackoverflow has outgrown this method. It only works while the website is running but it’s a very simple technique that is useful for many people. Also … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)