PC Review


Reply
Thread Tools Rate Thread

Copying a print file to a network computer.

 
 
Sid Elbow
Guest
Posts: n/a
 
      15th Apr 2008
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.
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      15th Apr 2008

"Sid Elbow" <(E-Mail Removed)> wrote in message
news:48052952$0$25193$(E-Mail Removed)...
> 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


 
Reply With Quote
 
Sid Elbow
Guest
Posts: n/a
 
      16th Apr 2008
Pegasus (MVP) wrote:
> "Sid Elbow" <(E-Mail Removed)> wrote in message
> news:48052952$0$25193$(E-Mail Removed)...
>> 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?
 
Reply With Quote
 
Sid Elbow
Guest
Posts: n/a
 
      16th Apr 2008
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
 
Reply With Quote
 
Sid Elbow
Guest
Posts: n/a
 
      16th Apr 2008
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.
 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      16th Apr 2008

"Sid Elbow" <(E-Mail Removed)> wrote in message
news:48055272$0$31224$(E-Mail Removed)...
> 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!!


 
Reply With Quote
 
Sid Elbow
Guest
Posts: n/a
 
      16th Apr 2008
Pegasus (MVP) wrote:
>
> Thanks for letting us in on your soliloquy!!


You're welcome :-)

- and thanks for pointing me in the right direction.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying from one computer to another in a network Pierce Brosnan Windows XP Networking 0 1st Nov 2006 11:21 AM
copying exe or zip files to another network computer jr4939@itsa.ucsf.edu Windows XP Embedded 1 2nd May 2006 10:04 AM
Re: copying old address book to new computer via network Alan Windows XP New Users 0 26th Jul 2003 08:27 AM
Computer reboots when copying a folder from network Woy Microsoft Windows 2000 Networking 1 24th Jul 2003 08:27 PM
Computer reboots when copying from a network folder Woy Microsoft Windows 2000 File System 0 24th Jul 2003 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 AM.