Mike,

You will probably need to parse out the relevant Date information..

code:

BREAK ON CLS

?@Date

; -- Assuming @Date yields, 2001/11/15

$Mo = SUBSTR(@date, 6, 2)
$Day = SUBSTR(@date, 9, 2)
$Year = SUBSTR(@date, 1, 4)
$Date = "$Mo$Day$Year"

?$Date



Once you get this, change the following line to be -

$newname="j:\drs1\drs1backup\$Date.log"

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's