Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Toggle schedule from process

Is there any way to enable/disable a schedule from a process?


For example, while file trigger is not working, I've created a workaround-process for copying files from one folder to another. It checks the source folder each 10 minutes between 15:00 and 18:00. I would like to automatically disable it's schedule after today's files are copied and enable it after 18:00.


I've tried to update the Schedules table in Processes.dat database (see code below), I even can see the changes at Scheduler tab of WA Console (mark in Enabled column appears/disappears), but the schedule itself continues to work until I disable it in Console interface (not DB update).

 

update Schedules
   set Enabled = abs(Enabled-1)
 where JobId = (select Id from JobInfo where Name = '%ProcessName%')

 


Best Answer

Hi Roman,


You could use the WinAutomationController.exe to disable/enable the assigned process to that scheduler.


Feel free to review the Help File of WinAutomation or the following article on how to achieve that:

Controlling WinAutomation from the command line

1 Comment

ADMIN
Answer

Hi Roman,


You could use the WinAutomationController.exe to disable/enable the assigned process to that scheduler.


Feel free to review the Help File of WinAutomation or the following article on how to achieve that:

Controlling WinAutomation from the command line

Login or Signup to post a comment