Tips & Guidelines

Please prefix your posts with the version of Visual Basic you are using. Example: [VB2010] - [VB2015], [VB6], [VBSCRIPT], [VBA]

Posting any code you have will help others better understand what you are trying to do and what you have tried already, even if it doesn't work properly. It also shows that you already tried to solve your problem.

If you ask for help, you should come back and let us know how things turned out.

Please up vote anybody who helps with your submission, we want people to keep answering questions.

Homework questions are tolerated, please be specific about the questing as much a possible. Asking us to write it for you is not going to happen. We also reserve the right to not answer if we think you are just not trying.

If you're really trying to write a file to the root of c:, it's likely a permissions problem. Try pointing at a subdirectory that doesn't have any write restrictions on it or run your code as Administrator..