copying binary files to a printer

  • Thread starter Thread starter Gavin
  • Start date Start date
G

Gavin

In Windows 2000 I used the following dos command to print
a binary file:

copy c:\testprint.prn \\SMD\HPLJ5_Upstairs.smd

When I try to run it in Windows XP the specified path is
now invalid. As far as I'm aware the printer hasn't
changed.
Has anyone else come across this or am I being thick?!

Cheers.
 
Try renaming the printer share name with less than 12 characters and
without the underscore.

(I think the limit I've see is 12, but I don't recall exactly, and I
know underscore isn't normally considered a "special character," but
....)
 
Thanks for that. I tried it bit didn't seem to work. Have
now rewrote the program to write directly to the printer
queue using the Win32 API. If you want any more about
this then give us a shout.

Cheers,

Gav.
 
Back
Top