Jarmo wrote: > %%~nA strips the path and returns only the file name without extension. Excellent. I didn't realize you could do this. I also use the FOR command with my IIS daily logs, which have a filename like EX000420.LOG. FOR /L %F in (401,1,430) DO [command] EX000%F.LOG will perform [command] on each log file, in the specified order. Aengus ------------------------------------------------------------------------ This is the analog-help mailing list. To unsubscribe from this mailing list, send mail to [EMAIL PROTECTED] with "unsubscribe" in the main BODY OF THE MESSAGE. List archived at http://www.mail-archive.com/analog-help@lists.isite.net/ ------------------------------------------------------------------------