windows-task-scheduler

Is it possible to manage windows scheduler from an asp.net-mvc site or other remote options?

我怕爱的太早我们不能终老 提交于 2019-12-21 20:44:07
问题 I am trying to see if I can manage a bunch of windows scheduled tasks from an asp.net-mvc site (setting up new tasks, updating frequency of existing tasks, etc) because we want to allow non technical users to update this info (so we want to avoid people having to log into the webserver directly,etc) I see you can do this from C# in general (links below) but not sure about entitlements, etc that would make it possible to manage via web app. http://code.msdn.microsoft.com/windowsdesktop

Create scheduled task using VB.net [duplicate]

冷暖自知 提交于 2019-12-20 08:09:26
问题 This question already has answers here : Setting up a scheduled task in .Net (2 answers) Closed 5 years ago . How do I create a scheduled task using VB.NET - Populating Scheduled Task fields from vb.net program on button click? I have nothing at the moment, nor do I even know if it is possible. 回答1: You have to create wrappers around the native COM interfaces. If you don't want to do it yourself, you can use this library https://taskscheduler.codeplex.com using System; using Microsoft.Win32

Create scheduled task using VB.net [duplicate]

萝らか妹 提交于 2019-12-20 08:08:11
问题 This question already has answers here : Setting up a scheduled task in .Net (2 answers) Closed 5 years ago . How do I create a scheduled task using VB.NET - Populating Scheduled Task fields from vb.net program on button click? I have nothing at the moment, nor do I even know if it is possible. 回答1: You have to create wrappers around the native COM interfaces. If you don't want to do it yourself, you can use this library https://taskscheduler.codeplex.com using System; using Microsoft.Win32

How to change the priority of a running java process?

此生再无相见时 提交于 2019-12-17 22:28:11
问题 In a related question we explored using ProcessBuilder to start external processes in low priority using OS-dependant commands. I also discovered that if a parent process is low priority, then all of its spawned processes start in low priority. So my new question is about starting a java file (run via double-clicking an executable jar in windows) in low priority or changing its priority programmatically during the run. I have tried altering the thread priority, but this has no effect on the

Debugging a Windows Console Application from Task Scheduler

烂漫一生 提交于 2019-12-12 10:19:57
问题 I also checked previous questions on Stack Overflow before posting this. Here is my problem: I created a Windows Console Application on Visual Studio 2017. This application is supposed to fetch some data from tables and send email at regular intervals. Initially, I created a Windows Service and it is working fine but later I decided to execute this from Task Scheduler as changing schedules would be easy. The MAIN code is as below: public static void Main(string[] args) { RetrieveData(); }

schtasks SYSTEM fails

岁酱吖の 提交于 2019-12-12 01:34:00
问题 It is noted here and in the help that you can set "run as". /RU username Specifies the "run as" user account (user context) under which the task runs. For the system account, valid values are "", "NT AUTHORITY\SYSTEM" or "SYSTEM". From my tests these commands will start the task schtasks /create /sc once /st 00:00 /f /tr foo.exe /tn bar schtasks /run /i /tn bar However running it as SYSTEM will not launch foo.exe schtasks /create /sc once /st 00:00 /f /tr foo.exe /tn bar /ru SYSTEM schtasks

What is script working differently when called from Task Scheduler?

半腔热情 提交于 2019-12-11 21:21:34
问题 I have this script that I have scheduled on WIndows 7 using: SchTasks /Create /SC MINUTE /TN CheckHS /TR "C:\cygwin64\bin\bash.exe C:\ShellStuff\checkHS.SH" The script runs, but a BLANK line is written to checklog, when run from the scheduler. If I run the script from terminal the DATE gets added correctly. Why is it acting differently from the scheduler? checkHS.SH: #!/bin/sh set -x LOGDIR="/myd/Logs/" CURDATE=`date '+%A %W %Y %X'` echo $CURDATE >> $LOGDIR"checkLog" 回答1: Try after adding

How can I pass a powershell variable into a CMD command?

老子叫甜甜 提交于 2019-12-11 20:19:00
问题 I am trying to run the following command through powershell: schtasks /query /s $compname /v /fo csv | ConvertFrom-Csv $compname is set in the first part of the powershell script, but cannot be passed into the command like this. For example, when I try passing in $localhost, I get the following error: ERROR: Invalid syntax. Value expected for '/s'. Type "SCHTASKS /QUERY /?" for usage. Is there a way to pass the variable into this command? I don't plan to change to powershell's native way to