Solved

How to use a 'Print To File' file

Posted on 2001-06-15
7
1,079 Views
Last Modified: 2007-11-27
Hi all,

I have installed a printer driver on one computer that prints to file. I now have a .prn file and I want to send it to a network printer at work.

I used to do it to a local printer by doing:

copy /B file.prn LPT1

The network printer is installed using HP Jet Direct, which maps the printer to a virtual port. UNfortunatly, the same command as above doesn't work as it just creates a file named after the port!

Any ideas?

Cheers,

Leon
0
Comment
Question by:Astroman
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 15

Accepted Solution

by:
lyonst earned 100 total points
ID: 6194614
Hi,

Have you tried to do the following first...

net use lptn \\printserver\printer
For example: net use LPT1 \\fsvb29\qpcnprt2

Then try it again.

Cheers.

T.
0
 
LVL 1

Author Comment

by:Astroman
ID: 6194831
I can try that, but HPJetDirect doesn't use printer names like that, it maps an IP address onto a fictitious port.

I will play with that net use thing though.

maybe net use LPT1 <ip address>

will work?

0
 
LVL 12

Expert Comment

by:Housenet
ID: 6194953
Astroman the key factor in lyonst's statement is to map an LPT port to a queue & not a jetdirect IP or hardware address... Example...
You attach to a jetdirect printer to use it ... Printer is called hp2100.. Share this printer from the server or a station as say hp2100.
Then use
net use lpt1 \\servername\hp2100

then copy file >lpt1
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 4

Expert Comment

by:emb
ID: 6195765
There is no need to map the printer.  You can simply use:

copy /b file.prn \\server\printer

If your printer is in fact a local one on the LPT port, then your original command is correct, except for the missing : at the end

copy /b file.prn lpt1:

emb
0
 
LVL 4

Expert Comment

by:emb
ID: 6195787
Oops, didn't read the bit about it being a Jet Direct printer.  The first part of my answer will still apply however, if you take Housenet's advice and share the printer from a server or workstation.

emb
0
 
LVL 1

Author Comment

by:Astroman
ID: 6195873
Yeah, I got what the answer was, but I can't log onto the PC through the //computer/queue way because I don't haev access (don't ask me why not, and why jetdirect thingy works).

Anyway, I read the help message for 'net use', got someone else to put a password in, and it all worked.

Thanks for pointing me in the right direction.

Cheers,

Leon
0
 
LVL 15

Expert Comment

by:lyonst
ID: 6196062
Leon,

No problem.

Glad I could help.

T.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question