>Using
>
>run copy temp.txt PRN
>
>doesn't work because sometimes window is using the printer.
>If there was a way I could send this file to the windows spooler
>instead....
Take a look at my FAQ entry on how to copy a file to a printer port using the Win32 API; it works reliably on a cross-platform basis.