?
Solved

How to use a 'Print To File' file

Posted on 2001-06-15
7
Medium Priority
?
1,082 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 400 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

765 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