Click here to Skip to main content
15,888,009 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I use type command to print a draft file to print on network printer, it shows access denied error. I am logged in as administrator. I use the dos command TYPE filename > \\computername\printersharedname. How to solve it?

What I have tried:

TYPE filename > \\systemname\printersharename
Posted
Updated 27-Oct-17 1:25am

1 solution

Yeah, you can't do it that way. You have to map an LPT to the share first and then print to the LPT, which is explained in this[^].
 
Share this answer
 
Comments
kgmmurugesh 27-Oct-17 7:26am    
Net use command works successfully but the same error occurs when i print using type filename > lpt1.
Dave Kreskowiak 27-Oct-17 16:36pm    
Does the machines have any physical LPT ports? Check in Device Manager and disable if there's is a port on LPT1.

Or try the same commands on LPT2.
kgmmurugesh 27-Oct-17 23:51pm    
It has no LPT port. It uses usb port.
Dave Kreskowiak 28-Oct-17 11:20am    
USB is a bus, not a port.

The question still stands. Is there a device that is using the moniker "LPT1"?
kgmmurugesh 30-Oct-17 0:23am    
How to resolve my problem?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900