Skip to content

Latest commit

 

History

History
166 lines (82 loc) · 3.44 KB

PyITask.md

File metadata and controls

166 lines (82 loc) · 3.44 KB

PyITask

PyITask Object

Python object that encapsulates the ITask interface, inherits all the methods of PyIScheduledWorkItem

Methods

PyITask.GetApplicationName

PyUNICODE = GetApplicationName() Retrieve name of program that task will run

PyITask.GetMaxRunTime

int = GetMaxRunTime() Returns maximun run time for task

PyITask.GetParameters

PyUNICODE = GetParameters() Returns command line parameters for task

PyITask.GetPriority

int = GetPriority() Gets priority that will be assigned to process when task starts

PyITask.GetTaskFlags

int = GetTaskFlags() Retrieve task flags (None currently defined)

PyITask.GetWorkingDirectory

PyUNICODE = GetWorkingDirectory() Return working directory that the task will start out in

PyITask.SetApplicationName

SetApplicationName(ApplicationName) Specify which program the task will run

Parameters

  • ApplicationName : unicode

    Program to execute

PyITask.SetMaxRunTime

SetMaxRunTime(MaxRunTimeMS) Sets maximun run time for task, use -1 to disable

Parameters

  • MaxRunTimeMS : int

    Specified in milliseconds (use -1 to disable, not 0)

PyITask.SetParameters

SetParameters(Parameters) Sets command line parameters

Parameters

  • Parameters : unicode

    String containing command line parameters

PyITask.SetPriority

SetPriority(Priority) Sets priority for task

Parameters

  • Priority : int

    One of REALTIME_PRIORITY_CLASS, HIGH_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, IDLE_PRIORITY_CLASS

PyITask.SetTaskFlags

SetTaskFlags(dwFlags) Sets flag for task.

Parameters

  • dwFlags : int

    None currently defined

PyITask.SetWorkingDirectory

SetWorkingDirectory(WorkingDirectory) Sets initial working directory for task

Parameters

  • WorkingDirectory : unicode

    Initial working directory