>PMFJI, but you've to add error handling first to find why it's failing. See
Re: CopyFile API Problems with HP LaserJet 4000 Message #
883304 for sample WIN API error handling code
>
>>The CreateFile function creates a file successfully, but then WriteFile function fails. What should I take into consideration to use your code?
>>
Thanks a lot. The name of the computer was wrong, and the service was also disabled...
I'm going to add your procedure to this program.
If it's not broken, fix it until it is.
My Blog