Devilsbane wrote: » I don't think you need that repeat task every 15 minutes. You just need to have the trigger to start the task. Also, check the logs. Maybe it isn't starting because user credentials are wrong. Or maybe the path to the application isn't valid. Log files will spell this out.
Dracula28 wrote: » But in any case, I got sick of the task scheduler, and have found a way around it. I downloaded a batch to exe converter Bat To Exe Converter , then converted the batch file to exe, renamed the .exe to .scr extension, and set the file as screensaver. Now the screen saver is absolutely awesome in every way possible, because it runs the task just as I want it to.
if not "%minimized%"=="" goto :minimized set minimized=true start /min cmd /C "%~dpnx0" goto :EOF :minimized TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING" TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING" TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING" start iexplore
Const HIDDEN_WINDOW = 12 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objStartup = objWMIService.Get("Win32_ProcessStartup") Set objConfig = objStartup.SpawnInstance_ objConfig.ShowWindow = HIDDEN_WINDOW Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process") errReturn = objProcess.Create("nameofbatchfile.bat", null, objConfig, intProcessID)
Dracula28 wrote: » Devilsbane, I understand that I need to provide user credentials, but what I meant is that it should not be necessary to provide admin credentials for this task.Jander1023, I tried to set the user as system, but still the task would not run properly. I think this has something to do with task scheduler wanting the cpu usage to be lower than 10% for it to run a task after x minutes of idle time. I don't know for sure though. But in any case, I got sick of the task scheduler, and have found a way around it. I downloaded a batch to exe converter Bat To Exe Converter , then converted the batch file to exe, renamed the .exe to .scr extension, and set the file as screensaver. Now the screen saver is absolutely awesome in every way possible, because it runs the task just as I want it to. Conclusion, Screen Saver is king, Task Scheduler is overrated (when it comes to running tasks after x minutes of idle time).