Print to LPT1 via CMD (legacy application)
Posted on 2009-04-14
I have an old application that's used through RDP (Windows Srv 2003). The session is created from a PC with a Label Printer attached via LPT1.
The application runs the following batch file when trying to print a labelg:-
type c:\temp\labeldef.rpt > LPT1:
type c:\temp\myprint > LPT1:
On the 2nd line when trying to access the file 'myprint' the following error comes up (and nothing prints).
'the process cannot access the file because it is being used by another process'
What process? How do I narrow this down?
This process works fine on a Windows 2000 server, just trying to move onto 2003 for first time. Also, I can send a test page back to the label print from the RDP session, so it's connected via the session.
Any ideas with this please?