I am new kix script user. What I am trying to do is copy and rename files using variables. They are log files but I want the new name to be the date it was created. Any help would be appreciated.
mike

here is a sample of what i have already:

$file="j:\drs1\drs1backup\*.log"
$newname="j:\drs1\drs1backup\@Date.log"
if exist $file
shell '%comspec% /c ren $oldfile $newfile'