Solved

How to use a 'Print To File' file

Posted on 2001-06-15
7
1,081 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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…
Gain an elementary understanding of Blockchain technology.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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