I have a user with an ancient perl application that prints directly to an equally ancient dot matrix printer.
Under Windows 7 and 10 I was able to use "NET USE LPT1: \\LOCALHOST\DOTMATRIX" to get it to print.
Now the user has a new PC with Windows 11 and never gets paper output. I found that it does create a file "lpt1" with the contents needed.
The code to actually print:
open(F, '>LPT1') or die ("Can't open printer: $!");
print F $s;
close F;
What is missing that it doesn't seem to use the device mapping under Windows 11?
Thanks.