Announcement

Collapse
No announcement yet.

Schedule Task in Windows Task scheduler (disk fragmentation)

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

  • Schedule Task in Windows Task scheduler (disk fragmentation)

    You can schedule task in windows task manager using below script provided correct username,password for RU and RP .

    import subprocess;
    process= subprocess.Popen(['SchTasks','/Create','/RU','ross','/RP','comodo','/SC','DAILY','/TN','hibes','/TR','defrag.exe /C','/ST','18:54'],shell=True,stdout=subprocess.PIPE);
    result=process.communicate()[0]
    print result;


    sample output would be,

    SUCCESS: The scheduled task "hibes" has successfully been created.
Working...
X