Ok, it's solved. I had put in the THENs. It was 2 AM so... Anyway what's that about the help of the command.com being inside it but never appearing ?! Just try to open command.com as text in an 8-bit editor, and search for 'ERRORLEVEL'. thanks for all the suggestions, Peter