TimeConvert is exactly what you want..
 Code:
; What is the time 3 minutes from now 
$Time = TimeConvert(TimeConvert(@DATE + ' ' + @TIME) + 180)
A "cTime" is a value that is the number of seconds that have elapsed since a particular date/time. It makes time calculations VERY easy.

Convert the current time to cTime format and you have a number. If you want the time 3 minutes from now, you add 180 seconds (3 * 60) to that. Convert the cTime value back to a Date/Time format and you have the desired time. The example above does that with recursive calls to TimeConvert - the inner call returns the cTime, the outer passes the value back, with 180 added to it.

TimeConvert does just that - you give it a Date & Time and it returns a cTime. Give it a cTime and it returns Date & Time. Can't be easier!

The most you'll need to do is to split the time and date parts. If you choose to split a time value into component parts to manipulate, you'll need to take overflow into account - 58 minutes + 3 minutes is NOT 61 minutes, but 1 hour and 1 minute.. TimeConvert avoids that overhead.

You might also want to look at the jt.exe and tcLib library for manipulating scheduled tasks. The "at" command has been depracated since Windows 2000 due to security vulnerabilities. Both tcLib and ScheduleTask() allow simple creation of tasks from within Kix. tcLib is a more advanced library of UDFs that allows you to not only create, but edit, query, run/terminate and delete tasks. Just put the jt.exe in the system Path, load the tcLib library, and make 4 short UDF calls to create a task.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D