Python object that encapsulates the ITask interface, inherits all the methods of PyIScheduledWorkItem
-
Specify which program the task will run
-
Retrieve name of program that task will run
-
Sets command line parameters
-
Returns command line parameters for task
-
Sets initial working directory for task
-
Return working directory that the task will start out in
-
Sets priority for task
-
Gets priority that will be assigned to process when task starts
-
Sets flag for task
-
Retrieve task flags (None currently defined)
-
Sets maximun run time for task, use -1 to disable
-
Returns maximun run time for task
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
-
ApplicationName : unicode
Program to execute
PyITask.SetMaxRunTime
SetMaxRunTime(MaxRunTimeMS) Sets maximun run time for task, use -1 to disable
-
MaxRunTimeMS : int
Specified in milliseconds (use -1 to disable, not 0)
PyITask.SetParameters
SetParameters(Parameters) Sets command line parameters
-
Parameters : unicode
String containing command line parameters
PyITask.SetPriority
SetPriority(Priority) Sets priority for task
-
Priority : int
One of REALTIME_PRIORITY_CLASS, HIGH_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, IDLE_PRIORITY_CLASS
PyITask.SetTaskFlags
SetTaskFlags(dwFlags) Sets flag for task.
-
dwFlags : int
None currently defined
PyITask.SetWorkingDirectory
SetWorkingDirectory(WorkingDirectory) Sets initial working directory for task
-
WorkingDirectory : unicode
Initial working directory