Thank you kindly for finding the flaw in my script and for explaining the header options to help improve my future endevors. I have fixed the script and it works great.

Just one last question, I seem to get a line with "00" in the command prompt window after my script completes before I get a prompt back. It doesn't seem to keep the script from running properly, but I'm wondering if it indicates a problem I should be concerned with.