For Programmers: Free Programming Magazines  


Home > Archive > Clipper > October 2005 > XP Print to LPT1 "Access Denied"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XP Print to LPT1 "Access Denied"
Elwood P. Suggins

2005-09-24, 9:55 pm

Client with a Dell computer running XP 2002 tried connecting an Epson dot
matrix printer to LPT1. It prints from notepad, but trying to print from
DOS Clipper program gives an error and won't print; trying a command line
"copy x.txt lpt1" gives error "Access Denied". This is hearsay - I'm 200
miles away, and trying to do this on the phone, but I pretty much trust
the person doing it, so I'm fairly sure what she's telling me is
reasonably accurate.

Any ideas?

Elwood P. Suggins

2005-09-24, 9:55 pm

On Sat, 24 Sep 2005 18:36:59 -0500, Elwood P. Suggins wrote:

> Client with a Dell computer running XP 2002 tried connecting an Epson dot
> matrix printer to LPT1. It prints from notepad, but trying to print from
> DOS Clipper program gives an error and won't print; trying a command line
> "copy x.txt lpt1" gives error "Access Denied". This is hearsay - I'm 200
> miles away, and trying to do this on the phone, but I pretty much trust
> the person doing it, so I'm fairly sure what she's telling me is
> reasonably accurate.
>
> Any ideas?


This printer was connected to a W98 box and shared with the XP box, which
worked okay except that the XP box occasionlly decided that it couldn't
see the printer anymore and she had to go print something on the W98 box
to get it back online. The W98 box croaked.


Stephen Quinn

2005-09-24, 9:55 pm

Elwood

Get the customer to uninstall the printer drivers/reboot and reinstall them
again.
XP probably still thinks the printer is attached to the W98 box.

HTH
Steve


Elwood P. Suggins

2005-09-24, 9:55 pm

On Sat, 24 Sep 2005 18:42:22 -0500, Elwood P. Suggins wrote:

> On Sat, 24 Sep 2005 18:36:59 -0500, Elwood P. Suggins wrote:
>
>
> This printer was connected to a W98 box and shared with the XP box, which
> worked okay except that the XP box occasionlly decided that it couldn't
> see the printer anymore and she had to go print something on the W98 box
> to get it back online. The W98 box croaked.


For anyone who gives a rat's ass, here's what I've found so far. I haven't
had a chance to try it out yet, because it's after closing on Saturday
night, but here's what I have.

For XP Pro (which this is) apparently you can't print from DOS unless you
have Admin rights (yeah, right, sounds like a good idea to me), so that's
probably the first thing we'll try.

The workaround is to share the printer and set lpt2 to point to the shared
printer.

What a crock. Thanks, Bill.

Ian Boys

2005-09-25, 3:55 am

It might be worth loading a command prompt and doing a NET USE to see if DOS
still thinks the port is redirected. You could also do a NET USE LPT1
/DELETE to cancel any redirection.

Ian Boys
DTE

"Stephen Quinn" <steveq@NOSPAMintegritynet.com.au> wrote in message
news:%bnZe.12638$0E5.12102@news-server.bigpond.net.au...
> Elwood
>
> Get the customer to uninstall the printer drivers/reboot and reinstall
> them again.
> XP probably still thinks the printer is attached to the W98 box.
>
> HTH
> Steve
>



Elwood P. Suggins

2005-09-25, 6:55 pm

On Sun, 25 Sep 2005 01:38:03 +0000, Stephen Quinn wrote:

> Elwood
>
> Get the customer to uninstall the printer drivers/reboot and reinstall them
> again.
> XP probably still thinks the printer is attached to the W98 box.
>
> HTH
> Steve


She'd already rebooted it, and installed a printer for the epson. It
printed the test page (albeit sloooooowwwwwllly). The older one (which was
"generic") was disconnected from the late W98 box. Net view showed only
the network drive, no printers. See my further notes regarding ADMIN
level. We'll find out Monday if that's the deal. Thanks for the response!
Elwood P. Suggins

2005-09-25, 6:55 pm

On Sun, 25 Sep 2005 07:45:31 +0000, Ian Boys wrote:

> It might be worth loading a command prompt and doing a NET USE to see if DOS
> still thinks the port is redirected. You could also do a NET USE LPT1
> /DELETE to cancel any redirection.
>
> Ian Boys
> DTE
>


She'd already rebooted it, and installed a printer for the epson. It
printed the test page (albeit sloooooowwwwwllly). The older one (which was
"generic") was disconnected from the late W98 box. Net view showed only
the network drive, no printers. See my further notes regarding ADMIN
level. We'll find out Monday if that's the deal. Thanks for the response!


Jon Munro

2005-09-29, 7:55 am

Elwood,
I had the same problem today copying a file to lpt1: from the DOS command
line. Check for and delete any other printer defined as using lpt1: Worked
for me.
hth
Jon Munro
"Elwood P. Suggins" <epsuggins@pookmail.com> wrote in message
news:pan.2005.09.25.16.10.46.352686@pookmail.com...
> On Sun, 25 Sep 2005 01:38:03 +0000, Stephen Quinn wrote:
>
them[color=darkred]
>
> She'd already rebooted it, and installed a printer for the epson. It
> printed the test page (albeit sloooooowwwwwllly). The older one (which was
> "generic") was disconnected from the late W98 box. Net view showed only
> the network drive, no printers. See my further notes regarding ADMIN
> level. We'll find out Monday if that's the deal. Thanks for the response!



HarvSather

2005-10-03, 3:55 am

Not sure if this addresses your problem, but here goes

If it is a managed desktop, you cannot redirect the printer for a physical
port unless you have admin rights
You cannot do the following "net use LPT1 \\server\share"

However, you can redirect LPT2 because it is usually a virtual port.
This is not the best solution because you may have several places in your
code where you want to print to the redirected LPT1

If you do not actually have a printer attached to LPT1, you can disable the
port and then you can redirect
Right click on My Computer, select properties, then hardware, then Device
Manager, expand ports, right click on LPT1 and disable

Harvey Sather



"Elwood P. Suggins" <epsuggins@pookmail.com> wrote in message
news:pan.2005.09.24.23.36.58.831889@pookmail.com...
> Client with a Dell computer running XP 2002 tried connecting an Epson dot
> matrix printer to LPT1. It prints from notepad, but trying to print from
> DOS Clipper program gives an error and won't print; trying a command line
> "copy x.txt lpt1" gives error "Access Denied". This is hearsay - I'm 200
> miles away, and trying to do this on the phone, but I pretty much trust
> the person doing it, so I'm fairly sure what she's telling me is
> reasonably accurate.
>
> Any ideas?
>



Fred Zuckerman

2005-10-03, 6:55 pm

> "Elwood P. Suggins" <epsuggins@pookmail.com> wrote in message[color=darkred]
> news:pan.2005.09.24.23.36.58.831889@pookmail.com...
dot[color=darkred]
line[color=darkred]

If a non-administrator is trying to remap an LPT port on WXP, there is a
Knowledge Base article from MS (#313644).
Fred Zuckerman


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com