task-scheduler

Possible to only initiate scheduled task if shortcut/button clicked?

Hi, I've created 2 tasks in Task Scheduler on my Vista PC start uTorrent at 2am then close uTorrent (and shutdown PC) at 7am. However i'd like to only like this task to run if I've clicked a shortcut - ideally show something in the tray as well if possible. But not sure how? Thanks in advance! ...

Regularly invoking an interactive process (WatiN tests) via Task Scheduler

I'm using a suite of WatiN tests driving IE to do some periodic sanity checking for the purposes of monitoring a site. The suite works fine when I invoke it interactively and/or when I configure the task in Task Scheduler to "Run only when the user is logged on". However, when I set it to "Run whether the user is logged on or not", and...

C# task scheduler query

Hi I have developed a scheduler sometime back for an ASP.Net site using cache expiration callbacks. I have the budget now to move the site to a dedicated server so I have written the scheduler as a windows service using a timer object - its working well in test envirinment. I want to know if the timer approach is good enough for this. I...

NSIS: Task Scheduler: Run only if logged on checkbox

I am having issues with setting up a scheduled task with NSIS. I will not know all of the passwords for the users I am setting up tasks for therefore I need the Run Only if Logged On checkbox checked to get around that. I do not have access to install other pieces of software onto the computer other than setting up the task so I have t...

How to run a Windows 2008 task from the scheduler with "interact with desktop"

I have a small .NET app that I'm running under Windows 2008 Server via the Task Scheduler. This application needs to open an excel file and then save it as csv. The task fails when I try to open the workbook. If I run it manually without the task scheduler running it, the app works fine. I have it set to "Run with highest privileges" a...

how from a console application detect "End" request from the Task Scheduler

hello, how in an console application detect that the user click on the "End" process in the task scheduler ? i try to setup SetConsoleCtrlHandler, but unfortunatly it's seam to not work (but curiously it's work in the task manager) i also try to catch the wm_quit or wm_close without any success ... thanks for you help ! ...

How do I schedule a task in Perl?

Does anyone knows if perl supports a task scheduler? I am working on a c# program that controls a bunch of perl scripts. The perl script talked to some device over the socket interface. The device, "target" , is a embedded system device that require real time interaction. One of the requirements I need to fulfill is that when I recei...

Adding tasks to Windows scheduler with PHP

Hi, I'm unable to find any information on adding tasks to Windows Task Scheduler with PHP. I can use exec(). This has to work on IIS. ...

Windows 2008 Task Scheduler Problem

I've created simple .NET 2.0 Console application. Reads DB, sends emails and writes result to subfolder named "logs" as a .TXT file. Application works when i run it manually. But task scheduler can not able to run it. When i looked the history i saw "Task Scheduler successfully finished "{46794881-039f-4c37-8c5b-af70def503ce}" instanc...

.NET processes in Task Scheduler

I have a program that executes another program and the main program continues when that program is finished. Process p = Process.Start("program2.exe"); while (!p.HasExited) Thread.Sleep(10000); if (p.HasExited) { // Execute more code } This works great as when I run the program. But does not work when it is used as a schedule...

Windows 2008 task scheduler tasks can have user interface?

on Windows 2003 server, scheduled tasks appeared on the console if the user was logged in at the time the task started. eg a scheduled task run as user xyz would appear on the screen if xyz user was logged in. This was the default behaviour on 2003 but isnt on 2008. Is there some way to get it to work on 2008? ...

Last Runtime 9020 returned by Windows Scheduler

I implemented an update process for a piece of software using the Windows scheduler. It worked great until lately. For some reason the task entered in the Windows Scheduler is not executed anymore. I suspect that the configuration of the target system changed, but I do not know in which way. The command schtasks /query /V /FO list retur...

Daemon in Java: simple schedule application?

This app must perform connection to a web service, grab data, save it in the database. Every hour 24/7. What's the most effective way to create such an app in java? How should it be run - as a system application or as a web application? ...

How to run a .NET program, automatically, every hour

Hi I have xml data I access through a web service. I need to read the data and copy it locally. The below code works fine. I need now to run this code at least twice or three times a day wihout manual intervention. How do I do that? Thanks! using System; using System.Collections; using System.Data; using System.Xml; class MainClass...

Windows Task Scheduler API 1.0 disable problem under Vista

I have an app that needs to run on XP and Vista. That is it has to interface to the appropriate Task Scheduler (1.0 or 2.0). Because of this I'm using the ITaskScheduler interface (1.0). This works great except when I try to use IScheduledWorkItem GetFlags or SetFlags. Then the OS's that use 2.0 (Vista +) return a different result fr...

"Work stealing" vs. "Work shrugging"?

Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy? By "work-shrugging" I mean pushing surplus work away from busy processors onto less loaded neighbours, rather than have idle processors pulling work from busy neighbours ("work-stealing"). I think the ...

Server 2008 Task Scheduler Mapped Drive Access C#

I'm trying do get Server 2008's Task Scheduler to run a C# console app which backs up data to a mapped backup drive somewhere on FastHosts network. I've written a test app which simply does this Directory.CreateDirectory("Z:\" + DateTime.Now.Ticks.ToString()); i.e. just creates a directory on the root of this Z drive. This works fin...

Where can I find the source code for a task queue implemented by C++ for Open MPI

hi Where can I find the source code for a task queue implemented by C++ for Open MPI ? I search it online, but cannot find it. Any help is appreciated. thanks Jack April 25 2010 ...

Simple "Hello World!" console application crashes when run by windows TaskScheduler (1.0)

I have a batch file which starts multiple instances of simple console application (Hello World!). I work on Windows server 2008 64-bit. I configure it to run in TaskScheduler, at startup, and whether user is logged-in or not. The later configuration means that the instances will run without GUI (i.e. - no window). When I run this task, ...

How to eliminate Server 2008/Vista/Win7 Task Scheduler Interop warning?

I am using Interop.TaskScheduler.dll in a C# Windows Application. - NOTE: This is the evolved task scheduler from Server 2008/Vista/Win7 not the one from before. I've managed to set it up and it works fine. However, the following warning remains and I could not figure out why. Has any of you seen this before? Is there a way to get rid...