Greetings,Please, follow the instructions below:- Share your printer by right clicking the printer, choosing Sharing, enabling sharing. NET USE LPT1: \\YourComputerName\PrinterSharedName
Of course, replace YourComputerName with the name of your computer and the PrinterSharedName field with the name of the share you created in the first step.
Please, do not forget to click the Accept button if you found my answer helpful.After you click the Accept button now, you can always continue communication with me if you have problems by logging into this site and pulling up this chat history. Thank you, - Jason
I'm aware of this command but can't get it to work
You already have the printer shared?
What else have you done that has not worked? If I know this, it will save us both a lot of time because it will not force me to repeat suggestions that you have already tried.
The printer is connected direct to the computer - not on a network. The NET USE command is only for networks isnt it? When I right click on the printer, it does not offer a sharing option. I have tried entering the NET USE at the DOS prompt as "NET USE LPT1: \\PETER-PC\HP Deskjet 2400 series" but it assumes the command is wrong and gives me the syntax. The program I am using is dBaseIV 1.5 which sends printer output only to LPT1, LPT2,COM1,COM2,COM3 or COM4. Is there a MODE command which will help?
Thank you for the update.
Right click the printer, choose properties, click the sharing tab, enable sharing, give the printer a share name, and click the Apply button.
Once that is complete, the net user lpt1: \peter-pc\hp command will work.
net use not net user
Looks promising. Do I need to put all or some of this command in " " quotes as there are spaces in the printer name?
I suggest that you do not put any spaces in the printer name.
Is there anything else I can help you with today before you click the Accept button?
Once you click the Accept button, your deposit that you have already been charged, will be released. I only I get credit from the website or get paid for my time if you click the Accept button.
I have done what you suggested and named the printer HPF2480 and rentered the command "NET USE LPT1: \\PETER-PC\HPF2480" and the command is accepted. But the program still won't print saying that LPT1 is an invalid port - evn though I have issued the dBase command "SET PRINTER TO LPT1". Why wont it print?
Did you enable to route the LPT1 port to the ms-dos environment?
Not sure what you mean? The NET USE command above surely sets up LPT1 to connect to the shared printer doesn't it? What else should I do?
Do not put the colon after the lpt1 tag
Type the following command: net use LPT1 "\\Peter-PC\HPF2480" /Persistent:Yes
And then press enter.
Then, please verify that it is functioning.
Going off to do it
You can also type the following command to make sure it all looks correct:net view \\%computername%
No joy yet. The above NET VIEW comd gave Path not found Error 53
Which operating system are you using?
You typed in the same exact command? net view \\%computername%
I typed in "net view \\ %PETER-PC%" . I'll try it again.
Do not type that.
Type this: net view \\%computername%
Then press enter.
Sorry, trying to be too clever! Result: "HPF2480 Print LPT1 HP Deskjet F2400 series. The command completed successfuly"
You should not get that message when you type in new view
When you type in the net view command, what is shown under the "Share Name" header?
So, you are typing the following command?net use LPT1 "\\Peter-PC\HPF2480" /Persistent:Yes
Yes, but I had to enter "net use LPT1 /D" first otherwise it wouldn't accept the command, Then it said command accepted successfully.
This is curious...
When you print to the LPT1 port, are you given any error?
Not by DOS. But dBase says either 'Printer not ready' or if I 'SET PRINTER TO \\PETER-PC\HPF2480=LPT1' it tells me 'Port not recognised'
Ok, that is peculiar.
It should work as it is now.
So it should - but it doesn't!
I have run out of ideas.For this reason, I am opting out of the question and allowing another expert the chance to help.I wish you luck // Peace.
Thanks for trying PE - can't make it out.
Running dBase in compatibility mode looks a good idea, Suryanto. But my computer says "access denied" when I try to save the new icon. How do I get control of my own computer?