Windows Server 2003
1833543 Members
3032 Online
110061 Solutions
New Discussion

Re: Autoredirecting print request to printers

 
Amit Dixit_2
Regular Advisor

Autoredirecting print request to printers

Hi,
I am having a windows 2003 server running
cobol application, This machine is also
having a line printer installed on that
server and the other printer is installed
on a machine running windows XP.

I want that when a user telnet to the server
and gives the print command through that
cobol program it should redirect the
request to the other printer installed on XP
based upon his request.

Is it possible ?
If yes than do i have to write a script.

Please help me.

Thanks,
Amit
2 REPLIES 2
Michael Schulte zur Sur
Honored Contributor

Re: Autoredirecting print request to printers

Hi,

is that cobol programme using a windows print command or is it printing from within the programme with cobol means?

greetings

Michael
Amit Dixit_2
Regular Advisor

Re: Autoredirecting print request to printers

Hi,
Let me explain you the exact scenario.
The Windows 2003 Server is running telnet
services through which the user connects to
to the server and executes COBOL program,
which generates reports and the output is
being generated into a file.

Now I want that the user can use
the "PRINT" command of DOS to print this
file to a specific printer of his/her
choice which we have mapped on different
LPT Ports. Using the following command

net use LPT2 \\machine\printer /PERSISTENT:YES

but when i try to give print to this LPT
port through my telnet session it says
Unable to initialize.

How can i make printers visible to the
telnet users.

Thanks,
Amit