Yup, that's heaps better than mine - and that's why you're the programmer and not me! Awesome, thanks. On Mon, May 9, 2011 at 4:15 PM, Henrik Størner <henrik at hswn.dk> wrote: > Better to check if it's a regular file (i.e. not a pipe, socket, ...) > See attached.