Totzkeeeeee's Blog

Just because I can...

  Home  |   Contact  |   Syndication    |   Login
  189 Posts | 4 Stories | 215 Comments | 341 Trackbacks

News


My blog is worth $14,678.04.
How much is your blog worth?

Article Categories

Archives

Post Categories

Image Galleries

Blog Roll

Cool Sites

Scott Hanselman has a post on his weblog about getting a shared network printer to work in DOS.  That's not really all that tough and actually got me thinking about a similar experience I had recently.

In my previous job I had the great misfortune of having to support a DOS based point-of-sale application.  When you sell stuff, you need to give out receipts.  We used the nice little T-88's from Epson.  Very nice little units that were fairly reliable.  When it came time to buy some more, I chose to go with the USB interface rather than parallel because hey, it is the 21st century after all. 

What I forgot about was the fact that DOS doesn't know a gosh darn thing about USB.  With parallel, it's easy.  IJW.  Even if you want to use a network printer it's dead simple.  Prior to Windows XP you can just go into the printer properties and there's a little button there to capture the printer port and map it to a network printer.  In XP you have to know the NET USE command to make it go as the GUI interface disappeared.  Odd that.

But what do you do when you don't have the printer connected to the parallel port and you're in a stand-alone type of scenario?  Now, the first thought you have is that you'll just share the printer and then use the old NET USE command to capture the printer port and map it to the USB printer.  QED.  This works.  Well, at least it works in the office.  Where I happened to have the POS computer plugged into the network to load the software and apply updates etc.  But once you disconnect the network cable, the network goes away and so does your shared printer.  It doesn't matter that the shared printer is connected to that very machine because as far as Windows is concerned it's on the network and the network has packed it in.

My initial solution to at least get the new store up and running was to simply give them a small 4 port hub to plug into.  Windows doesn't care if there are other computers to talk to on the network, so long as the network has punched in and is on the clock.  This, as you are no doubt thinking, is a less than an optimal solution. 

It's funny the things you forget about or at least put into the deep-archive, tape backup of the mind.  I put the issue aside for a few days but it was always nagging at my mind and then one day my wet-ware mainframe finally dredged up something from the archive.  LOOPBACK ADAPTER it flashed across my mind.  Five or six years ago that would have been the first obvious solution.  Sure enough, it's still around in XP. 

For the kids out there, the Microsoft Loopback Adapter is basically a software based network adapter that simulates a live network.  It was designed for this very purpose.  Testing network functionality in the absense of a live network.  Anybody out there remember the PWS on Win95?  (that's personal webserver - and you could even do ASP on it) Packets basically travel up and down the TCP/IP stack through the adapter and get fed right back to you.  So now, as far as Windows is concerned, the network is not only clocked in, but willing to work overtime if neccessary.  Sweet.

So here, for your edification and reading enjoyment are step-by-step directions on making this work.

In order to print from DOS in an offline environment like the stores, you will need to do a couple of things.

 

1)      Install the Microsoft Loopback Adapter

a)      In Control Panel, double click on Add Hardware.

b)      Click Next

c)      When the scan finishes, select "Yes, I have already connected the hardware"

d)     Click Next

e)      Scroll to the bottom of the list and select "Add a new hardware device"
Click Next

f)       Select "Install the hardware that I manually select from a list (Advanced)"

g)      Click Next

h)      Select "Network Adapters"

i)        Click Next

j)        Select "Microsoft" under the Manufacturer list.

k)      Select "Microsoft Loopback Adapter" in the Network Adapter list.

l)        Click Next

m)    Click Next

n)      Click Finish

 

2)      Configure the Adapter

a)      The loopback adapter is a virtual network adapter and can be configured the same as a regular network card.

b)      Set the adapter to have a static IP address such as 192.168.1.1/ 255.255.255.0

 

3)      Share the printer.

a)      I recommend you use a share name that you will remember.  I used “Printer” in the new machines that are already deployed.

 

4)      Capture the printer port.

a)      NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES

Now, not that I like to encourage this type of behaviour, but if you have done the above and still can't get it to print, you may find some help through one of the articles located here.

Dave
Just because I can...

posted on Sunday, March 13, 2005 1:36 PM

Feedback

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/16/2005 1:06 PM henrik tholle
hi .. just greate ..

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/6/2005 12:14 PM Rod
I have a regular network (not USB) and a USB printer. Can't seem to make the USB printer print anything from a DOS window. It shows the document being spooled, reports falsely that it has "printed" and that's it. All I get is a report that printing was successful, no errors or anything, but nothing printed!! Weird.



Rod

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/6/2005 5:02 PM Rod
Yup, it works to print from windows. I tried DIR >LPT1 from the command prompt and although it gave no error message, it still didn't print.

By the way, the printer is a Brother MFC-3220C combination fax machine/printer/copier.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/18/2005 8:25 AM kjocean
to make use of this network share method to allow dos to print to usb printer, you need to config printer's processor paremeter to "TEXT"

even though this method will work happily with normal texts under dos... it may not work with dos programs that use larger pages.. (since no utility is present to shrink the page for you)

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/28/2005 4:46 PM pgwalters
This even works in Win 2k. I too have a legacy app that requires captured ports to work. Most people use the Netware utilities to accomplish this, but when that server goes down (and it does), this is a sweet workaround. In fact I replaced the Netware capture with this. It's faster, too! Same steps apply, except you'll follow the Win 2k dialog scheme. Thanks for the tip.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/28/2005 7:14 PM bigwhite
One step is missing, you have to change the print processor from any to TEXT mode (start-setting-printer&faxes-right click on the printer - properties-advanced-print processor change to TEXT and click on OK), now it should work


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/28/2005 11:05 PM David Totzke
Thanks for the comments. I never ran into the TEXT mode problem but that's a great tip. I'm just glad that I don't have to worry about this kind of crap any more. :)

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/8/2005 3:16 AM Yvonne Luimo
When I try to do 'net use lpt' trick I have recieved a huge amount of paper with garbage instead of my document.

Then I found simple utility DOSPRN ant it printed my draft correctly on my Canon LBP-810.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/19/2005 12:02 PM Jeff FIsher
I emailed this to you. Is there a way to do this in Win98? I keep getting the error 2106 that I am not in a network environment. Win98 also does not seem to like the persistent command...

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/19/2005 5:32 PM Jack Logan
Hi Dave,

I have a USB printer on a local machine that I need to print to from a DOS app. The PC is connected on a local network, and the printer is shared out with a simple name. However I receive an error when trying to connect to the printer with the NET USE command, "The network name cannot be found." I have turned off Windows Firewall, and can see and connect to the printer by browsing the network. It's probably something simple, but what am I missing?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/25/2005 11:09 AM Jani
Instead of \\\printer in net use command, you can use normal printer sharing address like \\computername\printer
That helped me when I had that problem.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/6/2005 3:08 AM AIMAN
first: Instead of installing the loopback adapter u may do this:
net use lpt1: \\127.0.0.1\printer

Even though, there is a problem with windows-only printers that they get the printing and does know how to handle it.
the solution in this case to send the printing to a file and then send it by windows to the printer.
Anybody knows any software that do this????

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/21/2005 8:43 PM P.Harikumar
Dear Sir
I have *.prn files.
I want to print in USB port HP1000 laserjet printer through dos prompt.
eg. >print filename prn
but it is not printing.
please help me
P.Harikumar


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/22/2005 7:38 PM J.Jelicos
Since this was one of the first sites I found in searching for solutions to my printer problems for the benefit of others experiencing similar problem I thought I'd add a bit of clarification on a few points and solutions to several other problems along the way. I'm running XP and the printer involved is an hp designjet 3650.

After following the loopback instructions above, when I entered the NET USE command I received the following error messages:
System error 66 has occurred
The network resource type is not correct

Minor note: at least in XP for those who don't like to type or can't spell /p:y be used for /persistent:yes and /d for /delete.

It turned out this was a firewall problem. In Norton's Personal Firewall under Configure>Home Networking I hit the add button to Add a "Individual" ip address. 192.168,1,1, This is the address entered in the Loopback set-up above. I presume the same should work for other Firewalls. Window's Firewall didn't appear to be creating any problem. After I did this the Net Use command worked fine.

Once I had this resolved and I began trying to send things from DOS to the printer I not only failed to get anything printed but I frequently ended up with print jobs which hung up the printer and which I couldn't delete without rebooting. (Note: if rebooting doesn't delete the job try erasing all the files in \windows\system32\spool\printers (one of them was always locked but it didn't seem to matter if that one got deleted or not) then reboot again.)

Eventually I came to realize that not only did the HP printer I was using no longer accept PCL codes but that it no longer excepted even straight text. Instead it expects data to be in a propietary graphic format (search for PPA or Printing Performance Architecture if interested). As such, when the print processor is set to RAW and text is sent to the printer it is recieved as meaningless garbage. If the print processor is set to TEXT the text sent to the print driver is converted to a graphic image in the correct format and so prints okay.

Unfortunately, my main reason for wanting to print from DOS was to use a program I'd written which used PCL5 codes for print formatting. As this wasn't crucial and I haven't found any "good" way to get around this, I'm for the time being leaving things at that, but hopefully some of the above will help other users from having to go through what I did to get to this point.


# re: HOWTO: Print to a parallel port Printer to usb in Windows XP 6/29/2005 8:07 AM husain
i can not detect my parallel printer to my usb in windows xp please do the needful.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 7/12/2005 3:39 AM Rob Vredeling
Hi Dave,
I just implemented & tried everything from your marvelous tip. However: on giving the "Net Use" command (via RUN/CMD) I get that error-message (in my case in Dutch, translated something like) "Systemerror 66 - Wrong sourcetype".
What could be wrong? Thankx in advance for replaying, we indeed do have that unique DOS-app that only wants to print parallel...
Rob

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 7/16/2005 10:01 PM Sumant Singh
dear sir
i wana Print a ".prn" file to a USB Printer "hp1010 laser" from DOS command in Windows XP. how i can do this please resolve my problem.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/3/2005 2:42 AM Gopinath
Pl let me know hw to configure the network printer and it should b support dos based print.



# Print to a TCP/IP-Printer from DOS in Windows XP using LPT 8/8/2005 2:09 AM Eric
How can I print from a dos-program that doesnt support TCP/IP? I got a new Sharpprinter and it got a IP-address. But the DOSprogram can't write to a IP-address.

Somehow there must be a posibility to point it to LPT1 or LPT3. But how?

Thank you

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/17/2005 2:57 AM SOMENATH
HOW TO INSTALL A DOS BASED PRINTER IN WINXP

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/23/2005 11:36 PM sarahmeggs
Hi, thanks so much for this great tip, and have followed the instructions above and found a few things.
*Unable to set loopback IP address (properties greyed out)
*when I set printer processor to text, nothing will print at all ;( printer is an HP 1020.
*I setup the net mapping to LPT1 it works fine and it says the jobs are printing, but nothing comes out of the printer.

Any ideas?

Thanks, sm

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/28/2005 7:17 AM Ali ARsalan Junejo (Pakistan)
Yes, You can do it on the same PC the USB Printer is installed.

Steps to follow:

1. You have to edit the hosts file in your windows directory e.g. c:\windows\system32\drivers\etc(for XP), c:\winnt\system32\drivers\etc(for W2k) and add the following entry
YOUR-SYSTEM-IP COMPUTER-NAME
Now save the host file.

2. Use following command
(For Temporary Basis)
Net Use LPT1 \\computername\printersharedname

(For Permanent Basis)
Net Use LPT1 \\computername\printersharedname /yes

I have tested it on my PC(XP) and it works fine.

Enjoy.

Ali Arsalan Junejo
Pakistan


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/9/2005 3:25 AM ffoo
FireFox

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/14/2005 2:56 AM malik
Dear Sir
I have *.prn files.
I want to print in USB port HP1000 laserjet printer through dos prompt.
eg. >print filename prn
but it is not printing.
please help me


# re: HOWTO: Print from DOS to Windows Printer 9/19/2005 8:20 AM Christopher Lent
Mr. Ali Arsalan Junejo is on the right track, but misses one neat trick. Rather than editting up the %windir%\system32\drivers\etc\hosts file, we realize that a TCP/IP loopback already exists.

Microsoft preinstalls "localhost" to be a name for the "127.0.0.1" address. So you can use "localhost" as the hostname. But why bother. For a long time straight IP addresses have worked in Windows.

So the simplest solution (no extra loopback drivers needed) is:

1. Share the printer say as "hp404"
2. At the CMD prompt, type:
net use lpt1: \\127.0.0.1\hp404
3. Check by:
A.
COPY CON LPT1:
Type in a line of text
Control-Z

B.
COPY CON PRN:
Type in a line of text
Control-Z

C. PRINT SOMEFILE.TXT



# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/21/2005 2:53 AM steve
what about non-dos compatible printers? does the mapping of lpt port to a shared network printer work around the fact that the printer is non-dos compatible?

# HOWTO: Print to a .prn file installed on USB port from HP1015 printer from DOS in Windows 2000 Advanced Server 10/7/2005 3:46 AM Ajai
HOWTO: Print to a .prn file installed on USB port from HP1015 printer from DOS in Windows 2000 Advanced Server

Also how to take print out (.prn files & .ps) from a network printer installed on Intranet directly Hp 3550N


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/12/2005 12:35 PM Kalpesh
You can use DOS2USB Software to print on any printer from DOS including USB Printer wether its Laser/Inkjet or Dotmatrix

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/17/2005 8:56 AM Bill
Hi -

Can anybody tell me how to print to a USB printer from DOS in Windows 98 (rather than XP)?

# re: Simpler - HOWTO: Print to a USB Printer from DOS in Windows XP 10/24/2005 2:40 AM Rok Kolar
It's simpler to use "printer pooling", just select LPT1: and USB ports, and select "printer pooling" at bottom. Even codepage change TSR programs work ok that way.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/31/2005 11:41 PM sad
don't work any of these ideas.
winXP sp2, hp laserjet 1020.
job is hold on "spool"
this is all

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/2/2005 8:58 AM Jimmy Parker
Does this have to do with host based drivers versus non host based.

# re: HOWTO: Print to a USB Printer from DOS in Windows 98 11/17/2005 10:36 PM paramesh
Print to a USB Printer from DOS in Windows 98

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/20/2005 6:26 AM Kalpesh
Use DOS2USB software
it can print on any USB printer as well as Dotmatrix printer which connected via USB cable.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 12/11/2005 12:13 PM Sanomo Kuitti
What is the DOSPRN? Where from I can get it?

I tested dos2usb and it hanged up my computer immediately.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 12/11/2005 12:18 PM Dirk Mueller
Hallo Sanomo,

Its simple baby <g>

Visit <a href=http://www.dosprn.com>http://www.dosprn.com</a> and look at the desired DOSPRN.

P.S. why you use dos programs until now? Dos is ancient and ugly.


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 12/11/2005 12:20 PM Dirk Mueller
P.S. sorry for broken link. look here:
http://www.dosprn.com

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 12/20/2005 12:13 AM Datatec Computer Services
Many Thanks for putting something like this available to us all. got a client with a dos based accounting program. Does not want to spend hundreds on new software as old program work fine for them. Ran this solution with a HP5440 and it works like a dream.... Gold Star and all that......

# re: HOWTO: Print to Use DOS2USB software 1/2/2006 5:23 AM dak
how to print to dos 2 usb in windows 98 /2000 / xp

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/2/2006 8:22 PM Riyaz
Hi...cud you please let me know how to remove the mapped usb to lpt via net use..

thanks

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/3/2006 8:25 AM David Totzke
To remove a mapping issue the following command:

NET USE LPT1 /DELETE



# Printer get handged at the time of Printing 1/6/2006 2:36 AM Manish
Hi, My name is manish, i have buyed a new printer from HP, my model no is 3950HP. There is a problm persist, that when i start printing from the word application, it get hanged after printing 1st line and the computer get hanged. I have installed win98 with 64 MB. Please give me some solution for the same.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/15/2006 3:53 PM Eli Fitch
Thanks for this information. It is a good thing that blogs like this do exist. For syre, this will serve as a guide and information. Like you, I also had problems with my printer. Although I choose not to do some troubleshooting, something tells me that the damage has to be repaired. With these everything will be fine.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/20/2006 6:16 AM Jonathan
Thanks so much for posting this information! This was tremendously useful to me.

I have some tips to add that may help people who've had some difficulty with this.

1) Adding the loopback adapter is not necessary if the PC is on any sort of network... even a non-Internet connected LAN. In the case of networked machines, you can merely share the printer, and attach to the printer over 127.0.0.1, as someone else mentioned. For standalone machines, or ones that use dialup, you can either add the loopback adapter exactly as Dave describes, or you can wait until you're dialed into your ISP to print. Standalone machines may give "system error 1231" when you try the "net use lpt1 ..." command, if you're not networked.

2) Setting the shared printer's driver to "TEXT" mode is only required if the application you are using is "dumb" and does not know about specific printers. If your application can be configured for the printer you have, you can leave the setting at "RAW", since the DOS program will have the correct escape codes for the printer.

3) Most personal firewalls will block printer sharing. You need to allow for printer sharing over 127.0.0.1. For Norton Personal Firewall (part of Norton Internet Security), open the configuration window for the firewall. In the "Networking" tab, first choose the proper settings (Home, Away, Office, or Default). Click the "Trusted" tab below, then "Add...". In the window that comes up, make sure "Individually" is selected, and enter "127.0.0.1" as the host to allow. Click "OK" in this window, and "OK" again to leave the Firewall configuration. If you want to allow sharing under different locations, change "Settings for:" in the pull-down menu to and repeat the steps to add 127.0.0.1 as a trusted host. I was getting "system error 66" when trying the "net use lpt1 ..." command until I completed this step.
Other firewalls probably have similar settings to change.

Hope this helps answer a few lingering issues for folks.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/21/2006 10:07 AM Kalpesh
Print with DOS2USB is simple, just install the DOS2USB, start the DOS2USB, Start your DOS Software (Dont try dir > prn) and print as normaly you print. It redirect your print job by formating it as per ESC code to your default printer.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/29/2006 2:33 AM Vali
i need

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 1/29/2006 4:52 PM Me Myself and I


C:\>ipconfig

Windows IP Configuration

0 Ethernet adapter :

IP Address. . . . . . . . . : 192.168.0.101
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 192.168.0.1

1 Ethernet adapter :

IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :

C:\>net use lpt2: \\192.168.0.101\samsungptr
The command was completed successfully.

C:\>copy test0106.prn lpt2:
1 file(s) copied


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 2/1/2006 5:58 PM Scott Sawyer
Excellent information, thank you very much for posting this up.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 2/6/2006 9:38 AM Ken
I have a client with this very problem. I've tried the loopback adapter, net use, dosprn, dos2usb. I'm all out of ideas. NET USE captures the port fine and the print jobs appear in the queue as normal, but nothing happens on the printer. Any thoughts?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 2/7/2006 6:02 PM Tony
Hey--you're missing a critical step.

DOS considers LPT1 to be text-only (7-bits). Most .prn files are binary (8-bits), but DOS chops off the last bit of every character.

Use the following command to force DOS to send all the data in the .prn file and it will print like a charm:

C:\>copy /b test0106.prn lpt2:


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/2/2006 7:01 PM Bill
I have a question...I am able to use the net use command just fine, but when I use TEXT, the print does not compress on a form that I print. If I use RAW, the font will compress but the print is too light to see. The application that I use uses 027 038 107 050 083 for compressed print and 027 038 107 048 083 for normal print. The printer is a HP Photosmart 7450. Any help would be greatly appreciated! BTW, I tried using the USB2DOS program, but it did not work for me...just prints garbage from the application and locks up if I do a mem>lpt1. TIA

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/5/2006 11:11 AM Kalpesh
Insted of using mem > lpt1 use the "copy" or "Type" command with dos2usb.
"copy file.ext c:\dos2usb.spl" or
"type file.ext > c:\dos2usb.spl"

# Printing .prn to network Printer with no PC 3/8/2006 7:55 PM Dazzler
Hi All
What is the DOS command required to copy a .prn file to a stand alone printer that is not connected to a PC. Do is still call LPT1 or LPT2 ports on this printer.
When I look at the properties of the printer I see that the port is set to.
IP_104.78.16.39 OFFICEPRINTER


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/12/2006 10:16 AM Don Johnson
Your excellent solution used to work for me I'm sure, but now I cannot get the printer to share - despite having the Loopback Adapter set up. I get:
"Printer settings could not be saved. Operation couldnot be completed."
I've Googled that message but nothing seems to work - you seem to have a good grip on the subject - any ideas ? Please, please!

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/15/2006 7:49 AM Shirley
i have a lexmark X1185,,it will not print to my usb port,,it keeps jumping back to lpt..it worked fine until windows sp2 downloaded..now it want print what i need,,and now it skips most of the text from network

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/15/2006 4:33 PM George Arreguin
ok I made my printer send the information to the server printer , but I got another problem , the file I send from a DOS aplication , stay in the printer spooler in the server but never print , any idea

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 3/24/2006 6:16 PM Davide Guolo
You may want to have a look at Printfil, which, in addition to this, allows also to automatically obtain a graphical print preview, you can add background images, colorize the text, choose the font, export in PDF format and more.
More info and a free trial version is available for download at http://www.printfil.com

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 4/8/2006 10:54 AM Rob Wheeler
Try the freeware utility from Lee Woo, prnter v1.0 It works great for me!

# How can a xp shared printer with win98, although both PC is connect by network. Only printer was not shown in win98. plz solve this q. 4/22/2006 2:17 AM narayan
I am sure that you should solve this problem
thanking you


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/16/2006 7:16 AM AH
Thanks, you saved me time and money. The loopback is a nice way to start the network service specially when you've a stand-alone PC.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/20/2006 4:54 AM Oro Iquico
I installed dos2usb and it prints NOTHING. I spent full day with this apps but my program still does not print.

Even more as soon as tried to uninstall dos2usb my DOS program cannot print documents on my old epson lx-300. this f@cked dos2usb damaged something in my operation system ...


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/23/2006 9:57 PM Chandresh Kothari
We have installed more then 200 copies of DOS2USB and we have not found this kind of problem yet. However any one have any problem with DOS2USB then they can contact to dos2usb@mitrashell.com, even in eveluation mode.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/26/2006 4:55 PM Thompson
Can not set IP address in XP SP2.
XP SP2 uses a network bridge and the Loopback driver has few settings, no IP address.


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/26/2006 6:10 PM Thompson
How to print a filename.PRN file in Windows XP

This is useful if you are away without a printer for your laptop or want to print from an application that is not installed on your system. The correct printer driver must be used for the print to work on the system doing the printing, eg. making a PRN file using an HP printer will not print on a Lexmark printer.


Make a text file 'print-prn.bat' with the following:
@ECHO OFF
COPY /B %1 "\\LAPTOP\LEXMARK Z42"

Now you can go to the CMD window and type 'print-prn filename'
or
Drag & Drop a PRN file to 'print-prn.bat'

What's going on:
COPY - an old DOS command to copy something to something
/B - specifies binary mode
%1 - filename from the command line or the Drag & Drop
"\\LAPTOP\LEXMARK Z42"
- the network printer
\\computer-name\share-name
printer sharing must be enabled for this to work
Start -> Settings -> Printers and Faxes -> right-click -> Sharing


For more on COPY get an old DOS book or CMD -> HELP COPY


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/29/2006 9:46 AM Satish Atakare
Hi,

I like this article very much, thanks the organiser.

Did anybody have software which compile text reports and show text report preview, like it will show compressed, 10CPI, 12CPI, Expanded text like any report writer, in windows.



# re: HOWTO: Print to a USB Printer from DOS in Windows XP 5/29/2006 9:46 AM Satish Atakare
Hi,

I like this article very much, thanks the organiser.

Did anybody have software which compile text reports and show text report preview, like it will show compressed, 10CPI, 12CPI, Expanded text like any report writer, in windows.



# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/2/2006 7:19 AM Arnold
Same problem as some others: Running on a standard network; shared printer; net use executes properly, document appear in the queue but nothing sent to the printer. I have set mode to TEXT as suggested, does not help. Seems to lock up queue since even Windows test page is waiting for the document that is "printing". I have tried the other programs mentioned here but I need something user-friendly that the operator does not need to run.

Bottom line: it's in the queue, how do I force it to go the printer?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/6/2006 6/6/2006 8:48 AM Maher
Hi There
Thanks very much , its work perfect

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/7/2006 5:59 AM KANWAL CHOPRA
I DO NOT HAVE A PARALLEL PORT IN MY NOTEBOOK PC I AM PRINTING THROUGH A USB TO PARALLEL PORT CONVERTER ON MY DMP. I TRIED NET USE BUT I AM NOT SUCCESFUL. I TRIED USB2DOS[IT WORKS] BUT THIS IS NOT A FREE SOFTWARE. IS THERE ANY FREE SOFTWARE AVAILABLE


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/12/2006 2:21 PM mike
sorry to say! but there is no way to print to a laser printer directly from your dos apps if you dont have the appropriate DOS drivers for your laser printer and the printer itsef das not support dos. As the most of them do!

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 6/28/2006 7:53 AM bhullar
Hi I have same problem I want to print from Accpac plus dos to usb printer, it not working for please help!

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 7/21/2006 11:36 PM Harbhajan Singh
I have a loptop but

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 7/27/2006 10:16 AM MikeR
Dave,
Like you I have an old DOS based POS program that works great for what we need but it is time to replace our oki pin printer and $380 for another one is not an option. I tryed what you have recomeded and I can see the job in the que but it will not drop to the printer. any ideas?
Thanks
Mike

# re: HOWTO: Print to a USB Printer from DOS Appication 7/27/2006 12:22 PM wwwcoin@yahoo.co.in
I Want Vb6 program convert to dos print.(dos2usb)

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 7/28/2006 3:00 PM Chandresh Kothari
Use DOS2USB to get printing on any kind of printer from DOS
http://www.dos2usb.com

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/15/2006 11:11 AM Whitemoon
Quote:
2) Setting the shared printer's driver to "TEXT" mode is only required if the application you are using is "dumb" and does not know about specific printers. If your application can be configured for the printer you have, you can leave the setting at "RAW", since the DOS program will have the correct escape codes for the printer.

I was trying to install a Dell later Printer (Super Cheap 30$ version) and it does not support DOS and it is USB.

If your print goes in Queue but does not print or hang there, just change your printer to text and it will work perfectly. Worked for me anyways.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 8/19/2006 6:36 AM Shaun
how to make printer print in draft mode - I have it set in windows printer properties to be draft but when I print from DOS program it always prints nice quality but too slooow

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/9/2006 2:11 PM Bill
Does this net command have to run everytime you turn on the pc or can it be stuck inside some startup routine?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/9/2006 2:15 PM David Totzke
/PERSISTENT:YES

That part of the command ensures that the mapping persists across sessions and reboots.

Dave


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/23/2006 12:20 AM Maruga
I tried 'net use' command but my canon prints nothing. Then I installed printfil and dos2usb and received garbage on the paper. Can anyone help me?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 9/27/2006 10:24 PM Chandresh Kothari
Contact on dos2usb@mitrashell.com to resolve your problem.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/5/2006 12:10 PM Maruga
I'd contacted dos2usb team and the suggested to use dotmatrix printing mode. Unfortunately my dos app does not allow select printers.

I think I'll try to download dosprn utility tomorrow. This is my slender hope <g>

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/24/2006 5:17 AM D
in answer to Marua - dosprn is brilliant on windows 98, works like a glove.

cannot get it to work on windows xp.
D.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/25/2006 9:32 AM Chandresh Kothari
To Maruga
Have you clarified your problem to DOS2USB team? that you cant use the Dotmatrix printing mode?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/28/2006 10:25 AM B J Gill
Ihave some old DOS Horse race handicapping programs, that I use frequently.

How can I print the data to a Samsung 1430
Laser Jet ?

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/29/2006 3:27 PM William PAtterspm
Any ideas on how to print to a canon ip1500 via a dos program called Q&A v4? It supports older canon like the BJ200 but not this new one. This is so frustrating

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 10/31/2006 2:40 AM ARUN
I AM GETTING PRINTING BY DIR>PRN BUT NOT GETTING ANY PRINT FROM MY FOXPRO BASED DOS SOFTWARE HELP ME


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/3/2006 9:16 AM LP
Can anyone help me print a file to a non-HP inkjet? I have two printers--an HP laser and an Epson inkjet. I have an old printer file to print--a color graphic. I was able to print it to the HP by sharing the printer, mapping it to LPT1, and using the copy /b filename lpt1 command. But when I mapped the Epson to LPT2 and tried the same thing, I got pages of printer code instead of the file itself. Why did this work on the HP laser and not on the Epson inkjet? Thanks for your help.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/3/2006 1:14 PM Laura
You just saved my bacon. We had an identical problem, only the folks were already set up for the show (for some reason we hadn't had the chance to test the printers). I talked them through it, reading aloud from this entry. I was delighted to hear the chattering of the printer in the background. THANKS!

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/4/2006 9:57 PM Davide Guolo
For Mr. Satish Atakare: about print WYSIWYG preview
You may want to have a look at Printfil: http://www.printfil.com


# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/4/2006 10:04 PM Davide Guolo
For Maruga: Garbage on paper when printing DOS jobs through Printfil.

Please have a look at the manual (Start->Program Files->Printfil->Manual), Chapter 5: "Control Codes", then you may want to download some extra .SEQ files at http://www.printfil.com/eextra.htm

If you still need help, please write us at support@printfil.com because we do not monitor this page often (and probably this is not the best place to offer support for 3rd parties products)

Regards,
Davide Guolo
aSwIt s.r.l.

# re: HOWTO: Print to a USB Printer from DOS in Windows XP 11/14/2006 11:48 AM Siraj