Willou,

there is no way (yet) to get back variables from shelled commands without tempfiles
(Except you have WSH installed, then you can use WshPipe())

Think batch is a pain in the a** , I would rather pipe to files than use batch , but thats only my opinion [Big Grin]

By the way : be careful when adding x minutes to a given time (full hrs etc)

Here is what I'v done in the latest SP distribution script using SerialTime() :

code:
$time = left( SerialTime( ( SerialTime($rtime) + SerialTime("00:10:00") ) ) , 5)

translated: returns the hh:mm part of serialtime (remotes actual+10 mins)

hth
Jochen

ps.: you can SHELL your at command with kix; it will set @error to 0 if successful !

pps: Caution - at works in 24 hr format so if time is PM you have to manipulate it once more [Big Grin]

[ 25. November 2002, 14:17: Message edited by: jpols ]
_________________________