Announcement

Collapse
No announcement yet.

Instantly run eastablished task from windows Task scheduler

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Instantly run eastablished task from windows Task scheduler

    You can trigger task from windows task scheduler using below script,



    import subprocess;
    process= subprocess.Popen(['SchTasks','/Run','/TN','hibes'],shell=True,stdout=subprocess.PIPE);
    result=process.communicate()[0]
    print result;


    sample output would be,

    SUCCESS: Attempted to run the scheduled task "hibes".
Working...
X