net use lpt1: /del
net use lpt1 "\\127.0.0.1\EPSON FX-2190IIN"
However the customer has just installed a new PC with Windows 11 and the same setup no longer works. I have compared the printer configuration on both machines and it looks identical, but on the Windows 10 machine the application prints to the dot matrix printer but on the Windows 11 machine it does not. No errors are displayed, there are no print jobs in the queue and the application doesn't hang but appears as if it has printed the output.
If I open a cmd window on either machine and type the above commands in and then the following:-
net use lpt1: /del
net use lpt1 "\\127.0.0.1\EPSON FX-2190IIN"
dir > lpt1
Then I get a directory listing printed on the dot matrix printer as expected, so it appears it is just my application which no longer works as expected.
Any help gratefully received. I have already told the customer he may have to stick with Windows 10
