https://bugs.winehq.org/show_bug.cgi?id=39056 --- Comment #2 from Hugleo <hugocanalli(a)gmail.com> --- (In reply to Detlef Riekenberg from comment #1)
You do not need a script.
Wine has a builtin Port redirection to a pipe (or a unix file), which can be set in the registry in HKCU\Software\Wine\Printing\Spooler
Add a String with the portname as name of the String and the redirection-target as Value.
Start the redirection with the pipe symbol, followed by your command. "LPT1:"="|lpr -o raw -P cups_printer_name"
The Wine User Guide has a link to the related part in the Wine-Wiki: https://wiki.winehq.org/Useful_Registry_Keys
Please verify, that this works also with your old program and report back.
No wine cmd echo 'test' > lpt1 returns File not found https://www.winehq.org/pipermail/wine-users/2015-August/10 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.