Hi

jpols : dont care about calculation on time [Wink] . the purpose of the script (atm) is to schedule a batch file between 5 and 30 mn more than remote time. So no need to calculate AM/PM (i only get back this statement to use it in the schedule process).

sealeopard : Effectively, i began to look in the UDF library. There a re a lot of helpful function that looked for before.

Thkx for ur help all

Willou