I have tried a variety of destinations including just the root of C. I am convinced it is not the location
I have in the past seen cases where there have been security policies in place to prevent files being written to C:\ - whereas writing to anything in a subfolder worked fine. Maybe this is a factor.
Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.