You might try this instead
For the command line:
Code:
 //write -ds*split $+($logdir,$chan,.,$network,.,$date(dd),/,$date(mm),/,$date(yyyy),.log)
 


For a script remove the // in front of write