Jump to content

Copying a print file to a network computer.


Recommended Posts

Guest Sid Elbow
Posted

I've been sending a print file (.prn) to a local, parallel-port printer

by simply copying the file to LPT1 via a batch file.

 

I now want to send the same file to a printer which is attached to the

network via a print server. How can I do that in a batch file? The

print-server has an IP of 192.168.0.110 and the printer is on port # 9101.

  • Replies 6
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Copying a print file to a network computer.

 

 

"Sid Elbow" <here@there.com> wrote in message

news:48052952$0$25193$c3e8da3@news.astraweb.com...

> I've been sending a print file (.prn) to a local, parallel-port printer by

> simply copying the file to LPT1 via a batch file.

>

> I now want to send the same file to a printer which is attached to the

> network via a print server. How can I do that in a batch file? The

> print-server has an IP of 192.168.0.110 and the printer is on port # 9101.

 

Share the printer, then connect it to a printer port with

this command:

net use LPT2: \\%ComputerName%\SharedPrinter

Guest Sid Elbow
Posted

Re: Copying a print file to a network computer.

 

Pegasus (MVP) wrote:

> "Sid Elbow" <here@there.com> wrote in message

> news:48052952$0$25193$c3e8da3@news.astraweb.com...

>> I've been sending a print file (.prn) to a local, parallel-port printer by

>> simply copying the file to LPT1 via a batch file.

>>

>> I now want to send the same file to a printer which is attached to the

>> network via a print server. How can I do that in a batch file? The

>> print-server has an IP of 192.168.0.110 and the printer is on port # 9101.

>

> Share the printer, then connect it to a printer port with

> this command:

> net use LPT2: \\%ComputerName%\SharedPrinter

 

OK, thanks. I assume that %ComputerName% in this case is the network

name for the print-server?

Guest Sid Elbow
Posted

Re: Copying a print file to a network computer.

 

Pegasus (MVP) wrote:

> Share the printer, then connect it to a printer port with

> this command:

> net use LPT2: \\%ComputerName%\SharedPrinter

 

OK, I believe I have it correctly ... however, it isn't letting me copy

the print file. Here's a copy of the command window dialogue - the batch

file has the echo on so you can see what's happening. The print file

does exist in the local directory and is a tested file. LPT2: likewise

seems to exist OK.

 

(---- batch file run ----)

C:\1280>varcol

 

C:\1280>net use LPT2: \\PS-5A786A\PS-5A786A-U2

The command completed successfully.

 

 

C:\1280>copy /b varcol-e.prn LPT2:

"LPT2:" is not a recognized device.

The system cannot find the file specified.

 

(---- query LPT2: -----)

 

C:\1280>net use lpt2:

Local name LPT2

Remote name \\PS-5A786A\PS-5A786A-U2

Resource type Print

Status OK

# Opens 0

# Connections 1

The command completed successfully.

 

 

( ---- dir listing -----)

 

C:\1280>dir

Volume in drive C is Win2K-Main

Volume Serial Number is 1447-EAD7

 

Directory of C:\1280

 

04/15/2008 07:59p <DIR> .

04/15/2008 07:59p <DIR> ..

04/14/2008 05:41p 107,783 varcol-e.prn

04/15/2008 08:00p 68 varcol.bat

2 File(s) 107,851 bytes

2 Dir(s) 10,876,964,864 bytes free

Guest Sid Elbow
Posted

Re: Copying a print file to a network computer.

 

Sid Elbow wrote:

> OK, I believe I have it correctly ... however, it isn't letting me copy

> the print file. Here's a copy of the command window dialogue - the batch

> file has the echo on so you can see what's happening. The print file

> does exist in the local directory and is a tested file. LPT2: likewise

> seems to exist OK.

 

(I do realise I'm replying to my own posts :-)

 

I think I found a solution:

 

C:\1280>copy varcol-e.prn \\PS-5A786A\PS-5A786A-U2

1 file(s) copied.

Guest Pegasus \(MVP\)
Posted

Re: Copying a print file to a network computer.

 

 

"Sid Elbow" <here@there.com> wrote in message

news:48055272$0$31224$c3e8da3@news.astraweb.com...

> Sid Elbow wrote:

>

>> OK, I believe I have it correctly ... however, it isn't letting me copy

>> the print file. Here's a copy of the command window dialogue - the batch

>> file has the echo on so you can see what's happening. The print file does

>> exist in the local directory and is a tested file. LPT2: likewise seems

>> to exist OK.

>

> (I do realise I'm replying to my own posts :-)

>

> I think I found a solution:

>

> C:\1280>copy varcol-e.prn \\PS-5A786A\PS-5A786A-U2

> 1 file(s) copied.

 

Thanks for letting us in on your soliloquy!!

Guest Sid Elbow
Posted

Re: Copying a print file to a network computer.

 

Pegasus (MVP) wrote:

>

> Thanks for letting us in on your soliloquy!!

 

You're welcome :-)

 

- and thanks for pointing me in the right direction.


×
×
  • Create New...