scheduled-tasks

Import all schtasks .xml files inside the current directory via batch

核能气质少年 提交于 2019-12-25 09:12:11
问题 I know it's possible to import multiple tasks like this: schtasks.exe /create /TN "Task 1 Name" /XML "Full_Path_of_Backup_XML_File" schtasks.exe /create /TN "Task 2 Name" /XML "Full_Path_of_Backup_XML_File" schtasks.exe /create /TN "Task 3 Name" /XML "Full_Path_of_Backup_XML_File" But I'd prefer a more dynamic way to import all schtasks .xml files inside the current directory. Much like this batch here (.xml instead of .reg): rem @echo off cls SET folder=%~dp0 for %%i in ("%folder%*.reg") do

OpenMP: How to implement loop scheduling without for loops?

痴心易碎 提交于 2019-12-25 07:58:20
问题 I got this homework: Implement an OpenMP program that generates prime numbers in a given interval. You should use the prime generation method given in the next page ( Do NOT use other method !). Your program should generate a csv le called results.csv that reports the timing results in the following format. Table needed to be output #include <stdio.h> #define N 50 main() { int prime[N] ; int j ; int k ; int n ; int quo,rem ; P1: prime[0] = 2 ; n = 3 ; j = 0 ; P2: j = j+1 ; prime[j] = n ; P3:

OpenMP: How to implement loop scheduling without for loops?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 07:57:32
问题 I got this homework: Implement an OpenMP program that generates prime numbers in a given interval. You should use the prime generation method given in the next page ( Do NOT use other method !). Your program should generate a csv le called results.csv that reports the timing results in the following format. Table needed to be output #include <stdio.h> #define N 50 main() { int prime[N] ; int j ; int k ; int n ; int quo,rem ; P1: prime[0] = 2 ; n = 3 ; j = 0 ; P2: j = j+1 ; prime[j] = n ; P3:

Openmp thread affinity: Set 2 threads in the program, how many cores are running?

限于喜欢 提交于 2019-12-25 07:33:07
问题 I wrote an Openmp Program, running it on a two core machine. When I changed the thread number from 1 to 2 and from 2 to 4, I couldn't get the 2x speed up. 2 threads to 4 threads, that's the hyperthreads. Hyperthreads generally can't get 2x speed up because of resources limitation. However, 1 threads to 2 threads, still can't get the 2x speed up, I feel confused about this.I searched and found the CPU affinity concept, but I can't figure out how Openmp works. When I use 2 threads, does Openmp

Task Scheduler will not run macro

这一生的挚爱 提交于 2019-12-25 07:14:19
问题 I am using access 2013 and have setup a macro to be called via the task scheduler. I am currently getting the the error 2001 when opened via the task scheduler. My database has been set as a trusted location but the macro will not complete. I am running under my login. All other macros work perfectly. If I manually open access to run the macro It runs just fine without any errors. I am updating two spreadsheets in this one macro so not sure if this has anything to do with it. Here is the

Task scheduler and vbs using a user account

放肆的年华 提交于 2019-12-25 06:38:05
问题 I am trying to schedule a vbs script to run with regular user rights. The script runs fine when logged in as the user, but when I try to run the script from the task scheduler as "Run whether user is logged on or not", it gets stuck on the following line: Set IE = CreateObject("InternetExplorer.Application") I have tried running it with "Run with highest privileges" checked and unchecked. I am running the program from task scheduler as: program/script: "c:\windows\system32\cscript.exe"

How to implement Quartz.net Scheduler for simple HelloWorld

别等时光非礼了梦想. 提交于 2019-12-25 06:06:18
问题 The following code produces the following error: Imports Quartz Imports Quartz.Impl Public Class InsertRssFeedJob Implements IJob Public Sub Execute(context As JobExecutionContext) Dim rssContoller = New RssController() rssController.InsertRssFeedItem("") End Sub End Class Error 1 Class 'InsertRssFeedJob' must implement 'Sub Execute(context As IJobExecutionContext)' for interface 'Quartz.IJob'. C:\Users\darchual\documents\visual studio 2010\Projects\MyBlog\MyBlog\QuartzScheduler\Class1.vb 5

How can I schedule Java tasks at guaranteed fixed rate, independent of task run time?

我们两清 提交于 2019-12-25 05:10:11
问题 java.util.Timer's scheduleAtFixedRate is an obvious alternative if one wants to schedule tasks at a certain interval. However, if your interval is 10 s. and the tasks take more than 10 s. this function will busy-execute anything pending according to the documentation (quote: two or more executions will occur in rapid succession to "catch up."). This is of course a reasonable way to implement it, but it's not necessarily what you want. Does anyone know about standard functionality in the Java

minimize a batch file and firefox while running

拟墨画扇 提交于 2019-12-25 04:15:36
问题 Am tryinging to create a batch file that will be scheduled by windows task scheduler .here is my code start /min test.bat "C:\Program Files\Mozilla Firefox\firefox.exe" -tray TASKKILL /F /IM cmd.exe however running this in task scheduller causes a bug that runs indefinately which is not desireable.My goal is to run the firefox and the cmd minimized. Using this code with task scheduler works "C:\Program Files\Mozilla Firefox\firefox.exe" -tray TASKKILL /F /IM cmd.exe fine however the firefox

Powershell script creates empty zip file when run automatically through task scheduler, but works when run manually

五迷三道 提交于 2019-12-25 03:47:20
问题 Here is the full text of my script, with the business sensitive data filed off and replaced with generic names for things. function Add-Zip { param([string]$zipfilename) if(-not (test-path($zipfilename))) { set-content $zipfilename ("PK" + [char]5 + [char]6 + ("$([char]0)" * 18)) (dir $zipfilename).IsReadOnly = $false } $shellApplication = new-object -com shell.application $zipPackage = $shellApplication.NameSpace($zipfilename) foreach($file in $input) { $zipPackage.CopyHere($file.FullName)