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.

Programmer Extraordinaire :

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

Customer:

I'm aware of this command but can't get it to work

Programmer Extraordinaire :

Ok

Programmer Extraordinaire :

You already have the printer shared?

Programmer Extraordinaire :

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.

Customer:

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?

Programmer Extraordinaire :

Thank you for the update.

Programmer Extraordinaire :

Right click the printer, choose properties, click the sharing tab, enable sharing, give the printer a share name, and click the Apply button.

Programmer Extraordinaire :

Once that is complete, the net user lpt1: \peter-pc\hp command will work.

Programmer Extraordinaire :

oops

Programmer Extraordinaire :

net use not net user

Customer:

Looks promising. Do I need to put all or some of this command in " " quotes as there are spaces in the printer name?

Programmer Extraordinaire :

I suggest that you do not put any spaces in the printer name.

Programmer Extraordinaire :

Is there anything else I can help you with today before you click the Accept button?

Programmer Extraordinaire :

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

Programmer Extraordinaire :

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.

Customer:

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?

Programmer Extraordinaire :

Did you enable to route the LPT1 port to the ms-dos environment?

Customer:

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?

Programmer Extraordinaire :

Do not put the colon after the lpt1 tag

Programmer Extraordinaire :

Type the following command: net use LPT1 "\\Peter-PC\HPF2480" /Persistent:Yes

Programmer Extraordinaire :

And then press enter.

Programmer Extraordinaire :

Then, please verify that it is functioning.

Customer:

Going off to do it

Programmer Extraordinaire :

Thank you

Programmer Extraordinaire :

You can also type the following command to make sure it all looks correct:

Extract the file to a folder then double click file DOSPRINTUIAn icon will appear in the tray - bottom right of screen. You can double click the dosprint iconSelect LPT1 and click Set. You can select the Deskjet PrinterLPT1 will be set to the Deskjet PrinterClick OK to close You can try to print again with the DOS Program and the LPT1 will be redirected to the Deskjet Printer

If this helps, please click ACCEPT on my answer (don't misclick on others answer ) so I am paid for my time. If you still have problem, please let me know.Bonus and Positive Feed Back are highly appreciated.

Not quite sure what I'm doing here Suryanto. I've downloaded DOSPRINT.EXE into SYSTEM32 folder - and clicked on it - but nothing seems to be happening. What am I doing wrong?

Customer:replied 3 years ago.

Have just realised that there may be a significant reason why this is causing diffiulties. I am attempting to print from DOS program dBaseIV 1.5 through LPT1. But dBase is a 32 bit system and Windows 7 is 64 bit and doesn't let dBaseIV work properly. So I am using DOSBOX to create a virtual 32 bit environment in which dBaseIV will operate (and does for all normal activities. So far, not having a printer for my laptop, I have printed to file and run the file off another computer. Now I have a new HP deskjet I need to have it communicating with the program.

Customer:replied 3 years ago.

I see its only 6pm where you are - but its time for bed here in UK. Can we continue this tomorrow please. If you are able to suggest a way forward, I shall be able to give it a try in about 8 hours time. I hope this suggestion works for you.

Extract the file to a folder then double click file DOSPRINTUI (don't double click DOSPRINT, but DOSPRINTUI)An icon will appear in the tray - bottom right of screen. You can double click the dosprint icon

Select LPT1 and click Set. You can select the Deskjet PrinterLPT1 will be set to the Deskjet PrinterClick OK to close

You can try to print again with the DOS Program and the LPT1 will be redirected to the Deskjet Printer

If this helps, please click ACCEPT on my answer (don't misclick on others answer ) so I am paid for my time. If you still have problem, please let me know.Bonus and Positive Feed Back are highly appreciated.

I have now carried out the procedure as detailed above, including downloading the Zip file, extracting DOSPrintUI.exe and double clicking on it. The icon appeared and clicking on it enabled me to highlight LPT1 and SET it to the Deskjet Printer. I have then opened up dBaseIV and SET PRINTER TO LPT1 (and confirmed it) - but the program still says "Printer not ready". As I have to run dBaseIV with the help of DOSBox (which creates a 32-bit environment for dBase to work in), could this be affecting the redirection? Incidentally, the printer and dBase work perfectly on their own - but won't communicate it seems. Do you, or any of your colleagues, know if there is a dBase solution to this. I feel sure it can be cracked - but have no idea what else to try. Thanks for all you're doing for me - but I need a solution.

[parallel]# XXXXX: parallel1-3 -- set type of device connected to lpt port.# Can be:# reallpt (direct parallel port passthrough using Porttalk),# file (records data to a file or passes it to a device),# printer (virtual dot-matrix printer, see [printer] section)# Additional parameters must be in the same line in the form of# parameter:value.# for reallpt:# Windows:# realbase (the base address of your real parallel port).# Default: 378# ecpbase (base address of the ECP registers, optional).# Linux: realport (the parallel port device i.e. /dev/parport0).# for file: # dev: (i.e. dev:lpt1) to forward data to a device,# or append: appends data to the specified file.# Without the above parameters data is written to files in the capture dir.# Additional parameters: timeout: = how long to wait before# closing the file on inactivity (default:500), addFF to add a formfeed when# closing, addLF to add a linefeed if the app doesn't, cp:# to perform codepage translation, i.e. cp:437# for printer:# printer still has it's own configuration section above.# XXXXX: see parallel1# XXXXX: see parallel1

I have installed DOSPRN as described - but this has made no difference to the DOS print function in dBase. This still says 'Printer not ready' when I press Print. I'm reluctant to load DOSBOX MB6 as I'm sure it will interfere with existing DOSBox won't it? Presumably I can uninstall DOSPrintUI now?

Thanks, XXXXX XXXXX'm going to try it now. You have suggested the command lines that must go into the Configuration file. My present DOSBox version also contains the Mount commands that put the database program and files into the right place. Presumably I shall need to put them at the end og the new Config file as follows: "[autoexec]# XXXXX in this section will be run at startup.# XXXXX can put your MOUNT lines here.mount c c:\OldprogsC:cd database\dbase\dbaseexit" Am I right?

Sorry, but I can't work out how to download DOSBox MB6 from the link you've given. I am assuming that downloads of DOSBox MB6 are free like DOSBox itself. The link makes no mention of the Megabuild package. Where am I going wrong?

Have carried out the instructions as detailed. The DOSBox MB6 has loaded and I have adjusted the configuration file to include all the extra points. But now, instead of reporting 'Printer not ready' it says 'now printing' but there is no activity from the printer and the progam hangs. I think we've gone as far as is reasonable - but I'm no further forward. What happens to my deposit, please?

DIR > LPT1 didn't work. entered NET USE to discover that LPT1 was disconnected. So I connected it with "NET USE LPT1 \\peter-pc\hpf2480" which then showed LPT1 as OK. I have also clicked on DOSPRN but I'm not sure how you can tell if it's working. DIR > LPT1 still doesn't work. What am I doing wrong?

Have you done this stepc) Chose "Edit Configuration" DOSBOX option from the main menu and modify "parallel" section in the such way: [parallel] parallel1=file append:c:\temp\prnspl parallel2=disabled parallel3=disabled

Have done everything as you said. I've disconnected LPT1 with NET USE LPT1 /D, I've dpouble clicked on DOSPRN and entered C:\TEMP\PRNSPL" in spool filename, I've created c:\temp and changed config file to parallel1=file append:c:\temp\prnspl - but the outcome is as before. Says 'Now printing' but isn't. This is all most depressing. Have you any ideas left? I'm happy to pay you extra if we can crack it.

Hi, could you open the dosbox mb6 configuration file and save as a text file then upload to www.wikisend.com ? after upload you will get page that has fileid and download link. please tell me the fileid or download link so I can check it for you. Thank you

Suryanto - unfortunately everything I've tried has failed to work. So I think it's time to call a halt. I have decided that the best way is simply to print to file and to print the files from Word or similar. So thanks for all your help. You've done your best. I shall now press the Accept button.

Share this conversation

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.

JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. RobinElkton, Maryland

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.

110 Programmers are Online Now

Type Your Programming Question Here...

characters left:

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.