Print under DOS to USB

Kimo -  
 Bloc 6 -
Hello,

I am looking for a solution to print under DOS with a USB port printer.

Thank you.

23 réponses

  • 1
  • 2
Kimo
 
Thank you, André, for your response, but it doesn't work because my program is written in Clipper, which by default directs its prints to port LPT1 (the only port used by MS-DOS).
14
Elgger
 
If the PC on which your Clipper app is also running Windows:

1 - share your printer under Windows
2 - before launching your app, run: net use lpt1 //my_computer/my_printer
0
masternico Posted messages 491 Status Membre 320
 
Thank you Elgger for this brand new solution that no one had found yet.
Thanks again.
0
seb306
 
see the response from April 8, 2005...
0
antoine486 Posted messages 11 Status Membre 9
 
I also program in Clipper and maintain an application created in 1989... and I added, to print over the network, an option for LPT2 or LPT3 which allows me, by configuring a network printer on LPT2 and another on LPT3, to print either on my printer (LPT1) or on one of the two other network printers.
I am available to provide you with the command.
You obviously need access to the source programs.
There is also, I believe, a DOS command that allows you to redirect LPT1 to LPT2. I can look it up if needed.
Finally, regarding XP, I use my DOS programs under Clipper without much problem...
However, I am open to a method for redirecting LPT1 to the USB port... I'm looking...
4
le-herve Posted messages 1 Status Membre
 
hello; I just saw that you know Clipper and network printing issues well,
here is my problem..
I'm migrating a friend's PC, another friend had made him a program with DBIII and Clipper to manage his garage (around 1989).
Can you help me finish the migration, the network printing
thank you Hervé
0
antoine486 Posted messages 11 Status Membre 9 > le-herve Posted messages 1 Status Membre
 
I will search in my programs for the lines corresponding to the commands to the printers LPT1, 2, or 3 and send them to you.
Are you sure you have the source files because they need to be modified and then recompiled under Clipper?
Otherwise, the easiest thing would be to use printdir, as I will put in a message below. Indeed, a DBIII program under Clipper that only sends text is relatively easy.
Send me an email at the following address: Email address removed Modération CCM making sure to include [antoine486] in the subject line and I will send you the command lines back (if you have the sources, of course).
See you soon
Antoine
0
omar > antoine486 Posted messages 11 Status Membre
 
hello
I program in Clipper and I have a problem printing under DOS to USB
can you help me find the trick or the commands that allow me to change LPT1 to LPT2 or LPT3
thank you in advance
0
Olivier
 
Hello Antoine,
I have exactly the same problem as you: dBase IV compiled Clipper and I have managed until now to find parallel printers compatible with PCL5 that worked. It's getting more and more difficult and even impossible now on laptops. Your post is a few years old... but did you eventually find a solution for a USB port? (I have the source programs I wrote back in the 1985...).
Here is an email to reply to me: Email address removed CCM Moderation

Best regards

Olivier
0
antoine486 Posted messages 11 Status Membre 9
 
Just create a batch file with these three lines. (of course, changing the path where the prindir files are located.

c:\prindir9\prindir /x
c:\prindir9\prinmod /GET1 /PUT9 /FILE-c:\essai.txt
c:\My Application to launch

All the prints will be found in c:\essai.txt
Eventually, read the explanatory file (in English ;-( ... )
Antoine
2
ROGER VADOR
 
Hello,

I’m using an old DOS software and I would like to redirect LPT1 to a text file so that I can print it under Windows whenever I want. Could you send me your program that does this? Thank you very much.
0
antoine486 Posted messages 11 Status Membre 9 > ROGER VADOR
 
The easiest way for everyone is for you to fetch the program directly from the internet at the following address:

Best regards
Antoine

http://www.filelibrary.com:8080/cgi-bin/freedownload/DOS/j/102/prindir9.zip
0
alassade Posted messages 2 Status Membre 3
 
I just checked yes, they are fantasy drivers and it works, I managed to get my USB stick (Hiren's CD boot) to work.
But the printer doesn't, it lacks its drivers on the other side.
2
hussam
 
I found the dos2usb solution.
2
lopiondo
 
short duration
0
andré
 
I don't quite understand because if the printer is USB, the operating system is Win98SE, so there shouldn't be a problem printing. On the other hand, if the operating system is X, there is absolutely no possibility, as XP no longer has DOS.
1
atakidjo
 
Dear colleague, hello. I kindly ask you to help me find the solution that will allow me to print via USB port my outputs using the GW BASIC program from DOS. I thank you for your willingness to help me out of this difficulty.
0
antoine486 Posted messages 11 Status Membre 9
 
I found the solution ;-))
Thanks to a software called PrinDir9.com that I run in a batch file before my DOS application (under XP).
I get a txt file instead of a printout on the printer.
I just have to open this txt file and print it under Windows.
For all my DOS applications, it has correctly redirected the printout.
I’m available to send it to you, as well as my little batch file.
Hoping to have remained serious ;-) I also hope to have found the solution for the first respondent in this discussion. For me, it’s perfect. It’s up to him to close this discussion or not...
Antoine
P.S. I haven't tested it on a computer without a physical LPT1 port yet, as all my computers have a physical LPT1.
1
didier
 
how to use printdir9
thank you in advance
0
jb
 
Here is a simpler method to redirect the parallel port to a USB in Windows XP or 2000; for this, you need at least one network card on the PC. In the example, the PC name is MONPC:
1. Share the printer with a name of your choice, for example "IMPRIMANTE"
2. Open a command window (start button -> Run... -> type cmd then click OK
3. type the following command: NET USE LPT1: \\MONPC\IMPRIMANTE /PERMANENT:YES

If the PC is connected to a Hub or another PC, it works correctly; if not, a small setup is needed:

Take a UTP connector connected to a small CAT 5 cable (4 twisted pairs). Bridge connections 1 with 3 and 2 with 6, then plug it into the PC (Windows XP will think it is connected to the network)

For Windows 98, the net use command does not work, but in the printer properties, you can capture port LPT1

You can of course capture another port other than LPT1 (LPT2, LPT3, ...)

I did it for a friend, and it works!
1
markine
 
I confirm that this operation works on Windows 10 with the slight nuance that it is PERSISTENT and not PERMANENT that needs to be entered.
0
alassade Posted messages 2 Status Membre 3
 
Listen up roland333, here is the foolproof method with a few details:
- No need for a network card (because there's localhost)
- Go to the printer properties:
1) Share the printer using a short name to simplify things.
2) Go to the "Advanced" menu --> Print processor, and select TEXT instead of RAW
3) Apply the following DOS command
NET USE LPT1: \\"COMPUTER NAME"\"PRINTER SHARE NAME" /PERSISTENT:YES

This trick works wonders on Windows XP, I'm not sure about Windows 98.
For those who want to print from real DOS, I think it's impossible since USB is not supported.
1
ghost
 
the new free DOS also supports USB, like DOS from GHOST 2003 for example
Ghost
0
jpdeclermont Posted messages 1792 Status Membre 382
 
Hello,

I see there's a lot of commotion around the topic :)

Maybe try using a USB driver for DOS like this:
http://www.computing.net/dos/wwwboard/forum/15115.html

-------------------------------
... WinErr 01B: Illegal error - Windows did not allow you to have this error
1
seb306
 
Hello,
I also program in Clipper, and we have a PC park running XP 2000 or NT4. To print via USB, we share the printer on LPT3, and from DOS, we use NET USE LPT3: \\myPC\MyPrinter.
From Clipper, it's transparent.
You can do it on LPT1, but we have an issue with XP regarding the administrator rights not granted to the application, which causes XP to ask for a password at every print, annoying!!
1
masternico Posted messages 491 Status Membre 320
 
Hi seb306. I just did a search for the net use command on Microsoft, and it appears that it is possible to add an additional parameter to authenticate a user:

net use ... [/user: [User_Name@Domain_Name]]

If the domain name is omi, the current domain is used by default
(see: https://docs.microsoft.com/en-us/?mfr=true

Don't ask me how to use it because I don't know, but at least it should be possible to make it so that it doesn't ask for a password every time you print.
1
Mermoz
 
I tried printfil which worked but it is paid after a month
I print from an old program in gwbasic
1
ghost
 
let's be serious.. DOS does not know USB it wasn't born
Ghost
0
antoine486 Posted messages 11 Status Membre 9
 
So, to be serious, what I'm looking for is how to redirect lpt1 to a file on the hard drive.
Then to print it...
to be continued.
0
Phil
 
In the past, there was the DOS command "Mode" that allowed redirecting LPT1 to COM1...

A parallel port could be redirected to a serial port (but not the other way around)

You would do:
"MODE COM1:9600,N,8,1,P" to set the speed of the serial port
followed by
"MODE LPT1:=COM1:" to redirect LPT1: to COM1:
and then
"MODE LPT1:" to restore printing to LPT1: as it was originally

This MODE command may still exist, you need to check if the USB1 or EPUSB1 device exists & can possibly be used as we did with the old serial ports (USB is also a serial port... but much faster & with many advantages over the old ones)

I don't know if it works, it's a suggestion, another potentially possible solution, but if it doesn't work, we shouldn't waste too much time on it... if it's planned, it should be easy; otherwise, it means it wasn't planned...
0
Roland333 Posted messages 38 Status Membre
 
Hello,

My problem is similar to the one discussed, although I don't specifically need to print from DOS. I want to switch printers, and the chosen model can only be connected via USB.
However, I still use old software that did not offer USB in the printer configuration.
My current printer is connected via the parallel port (LPT2 on Windows 98 SE and LPT3 on XP).
Therefore, my wish would be to use a virtual printer that receives prints to a parallel port redirected to a USB port. I should note that I do not have a network card.
Could anyone advise or help me?
Thank you in advance and best regards.

Roland Duray
0
bernard.mouille
 
Hello,

To print in Windows format, you need to modify the program's sources and test it with a small program called DOSPRINTER, which you should be able to download from http://www.01net.com/

I use it and I can even convert DOS files to PDF

have a nice weekend

Bernard Mouille
0
Roland333 Posted messages 38 Status Membre > bernard.mouille
 
Hello,

Thank you for the response, but this does not solve my problem because, in fact, I do not need to print directly under DOS but through an old software that did not yet offer USB in the printer configuration.
My current printer (which I want to replace with a USB printer) is connected via the parallel port (LPT2 under Windows 98 SE and LPT3 under XP).
I am therefore looking for a program that redirects LPTx to a USB port. I should mention that I do not have a network card.
Who can help me?
Thank you in advance.

Roland Duray
0
antoine486 Posted messages 11 Status Membre 9 > bernard.mouille
 
While it is certain that DOS does not recognize USB ports (as has been clearly pointed out to me ;-)), I already mentioned in a previous email that there is a way, occasionally, to direct the printout to a text file.
Then print it under Windows... on a USB printer.
This, thanks to the printdir9 program which I can send to anyone who wants it. (see my previous emails).
Email address removed CCM Moderation
Best wishes to all and long life to this forum.
Antoine
0
Roland333 Posted messages 38 Status Membre > antoine486 Posted messages 11 Status Membre
 
Hello,

The problem is that I want to be able to redirect from LPT2 or LPT3 to USB for prints via software that also generates images and has a "layout," and routing the print to a text file will not solve this.
Thank you and see you soon

Roland Duray
0
José > bernard.mouille
 
To Bernard Mouille
Dear Bernard:
I am interested in using a few more programs in dBIII, but here in Kinshasa we can no longer find printers with a parallel port.
Could you please let me know what small modifications to make in the program, and send me the Dosprinter program by email? (I don't have the means to get it here).
Thank you very much
José
0
num
 
Without a network card, it is necessary to add a Windows component that is a virtual network card called Microsoft Loopback Adapter

Adding Hardware
Adding a Network Card
and therefore, select the Microsoft Loopback Adapter from the Microsoft cards.
0
Phil
 
Hello,

I have a bank management program and it needs to print on a Samsung partial cut SRP-350 printer.

The way it works on a desktop computer is that the printer is connected to the parallel port and is not the default printer. The program looks for the printer on the LPT1 port.

We are using Windows XP, and I modified a printer with a USB card to connect it to a laptop that only has a USB port.

The idea is to make it seem like the printer is connected to LPT1 and not to USB.

Thank you for your help.
0
Jimy54 Posted messages 2 Status Membre
 
You need to use the software DOSprint. It's free. The problem will be solved. At least if, like me, there isn't another issue that arises. I have a Canon BJC 85 (portable) and I get letters or numbers instead of my separation lines and frames. However, with an EPSON EPL 6200, it prints perfectly. I'm having a hard time understanding. Maybe I need a DOS driver that I don't have???
0
dco
 
Hello,
regarding your issue of numbers or letters instead of frames, it comes from the default font used by the printer.
Check with the character table: the terminal font.
The printer must have a DOS-compatible font, and if necessary, send the ESC configuration codes to the printer, for example, the configuration for a printer using PCL5 language: chr(27)+"(12U" to use the internal PC 850 font.
With certain printers, you can download a font.

DCO
0
Bloc 6
 
Hello, I tried everything like you all did, and without all your suggestions I would never have stumbled upon the solution. I propose what works for me:
download and install DOSPRN, and select the printer you want in the box that appears. It works for me.
Have a nice day and thank you for sharing.
0
  • 1
  • 2