Set the schedule to launch when idle,
Select the Settings tab, in the "Idle Time" section place a chek in the box;
"Stop the task if the computer ceases to be idle"
Thank you for your reply. I meant to use the schtasks.exe in a batch file and
enable the "Stop the task if the computer ceases to be idle" option from
within the batch file.