in reply to How do I send a file to the printer on Win32?

There is also another trick to write directly to a named printer, assuming the printer is shared and using the UNC syntax:
copy($file,'//host/printername');

Replies are listed 'Best First'.
Re: Answer: How do I send a file to the printer on Win32?
by Anonymous Monk on Mar 29, 2005 at 17:26 UTC
    copy ($print_file, '//hp-exch/HP4100-IS'); this command is working great except I don't know how to send a "\n" to the printer. The print out only displays the first line and nothing else... Any help would be greatly appreciated. Thanks, Brian bvolk@hpproducts.com