in reply to printing on win2k

One possibility is that you need to have "LPT2:" instead of "LPT2". Also the first "type" could be a copy, couldn't it?

Another option is to use the "replacement" for batch file scripting on W2k called "WSH" or Windows Scripting Host. It is a version of VB.

Finally, since this is a perl forum after all, why not open LPT2: with perl and print there directly instead of having a batch file or WSH script. I have done this before with success on Windows.

HTH, --traveler