How do I capture lpt1 and send to a network printer

Lindenberg

New member
Local time
6:32 AM
Messages
2
How do I capture LPT1 from an old DOS program and send it to a network printer?

In XP I used the command: net use lpt1: \\servername\printername to capture the printer port. In the Win 7 XP Mode the I haven't figured out what to use for the servername and the printername.

The old DOS program, dBase, runs perfectly. Just need to get the printing working.
 

My Computer My Computer

OS
Windows 7 64 bit
How do I capture LPT1 from an old DOS program and send it to a network printer?

In XP I used the command: net use lpt1: \\servername\printername to capture the printer port. In the Win 7 XP Mode the I haven't figured out what to use for the servername and the printername.

The old DOS program, dBase, runs perfectly. Just need to get the printing working.

Welcome Lindenberg to the windows 7 forums.

When you say that you have a network printer? There is some information missing here. How do you print to it now? Are you an administrator?

Can I assume that you have done a search on microsoft.com using
"how to print to a network print under dos"

or Google... (google is your friend)

Rich
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Laptop Qosimo X870
OS
Windows 7 Pro x64 SP1
CPU
Intel Core I7
Motherboard
Toshiba Qosmio
Memory
16 Gigs
Graphics Card(s)
NVIDIA GeForce GTX 670M
Monitor(s) Displays
17.7" laptop
Screen Resolution
1600 x 900
Hard Drives
256 Gig SanDisk SSD for C
256 Gig Intel SSD for D
Internet Speed
50/25 FIOS
Antivirus
Vipre (all you can eat for 10 machines)
Browser
IE and FF
Other Info
I have dos 6.22, wfwg 3.11, win98, 2000 and xp VHD's available for testing. MS's Virtual PC works great.
I have to ask...how long are you going to cling to the past?
At least ditch the ancient DOS based version...which has been dead for years.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
When you say that you have a network printer? There is some information missing here. How do you print to it now? Are you an administrator?

Can I assume that you have done a search on microsoft.com using
"how to print to a network print under dos"
I am currently using Windows XP and use the net use command to capture the output to lpt1: and this is sent to the network printer. Works great on XP and Windows 7 32bit. The 64bit of Window 7 using the virtual pc and xp mode is the challange.

Every path I followed on Microsoft's site sent me back to how printing works on XP. They don't talk about setting up capturing a printer port in XP Mode and sending the output to a network printer. The problem is on my network the network printer is \\server7\officeptr but in the XP Mode it doesn't understand \\server7\officeptr.

The reason I'm still using this old DOS software is because it runs all areas of my company and fits our manufacturing processes like a glove. There are hundreds of programs. My options are stay with xp, only use 32bit win7, figure out how to get the network printing to work or spend thousands of dollars on new software.

Thanks for your assistance.
 

My Computer My Computer

OS
Windows 7 64 bit
Hi there
It's been AGES since I used DOS but is it not possible to send the output to a .PRN type of file and then use normal W7 or XP methods to print the .PRN file out as a standard file.

I think also this piece of FREE software will do it for you if the company is still around

PrintFil: DOS print USB printer | LPT1 to USB, PDF, GDI Windows printing

Hi there again

Made a slight error --it costs around 70 USD but I would think in your case it would be worth it -- saves spending 1000's of dollars(US) and your old software keeps working.


Cheers
jimbo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I have to ask...how long are you going to cling to the past?
At least ditch the ancient DOS based version...which has been dead for years.

And... Sir/Madam, How long do you persist in regaling others who have spent 100's of hours programming in a system, not necessisarily of your liking, because you won't have to waste all of this precious time that you have *not devoted* to?
 

My Computer My Computer

OS
Windows 7 pro 64 bit with XP Mode
Hi there
Not sure comments like that are appropriate (logicearth) -- the OP said that his legacy application NEEDS this type of stuff and it's currently too expensive or not practicable to either install a new application (would need to train staff and possibly change the business process in the organisation).

It's very EASY for an individual to go out and say "Ditch the old app -- I'll go and install a new one) --but businesses aren't like that -- some have systems still running that are 40 years old or even older. I can name at least 7 instances where some old IBM Mainframe COBOL is still being used daily.

Most businesses don't have any interest in the computers --they just want the applications to run -- usually as cheaply as possible.

I'm quite sure if the business thought it was worthwhile to change the application plans would already be in hand to do it.

I'd go about it this way

1) forget Virtual PC and XP mode -- run a fully blown XP virtual machine on say vmware player or vbox -- both FREE . Install your Dbase software on the XP VM.

2) Now you CAN share printers between XP and W7 (32 / 64 bit mix) -- I posted a thread on how to do this on these Forums.


Read my post (nr 3 ) in THIS thread

http://www.sevenforums.com/network-sharing/7527-networking-printer-attached-win-xp-pc-win-7-a.html


Problem solved !!!!



Cheers
jimbo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
Right, because old stuff continues to work...One day the OP is going HAVE to upgrade, one day it is going to be forced. It would be in the best interest for the OP to start planning for the long term. Find alternatives and means of updating their stuff, because there will be a time when they will be forced and that will be more expensive then anything now.

For example, those old IBM Mainframes you mentioned when they start to break down (they WILL break down), RAM goes bad, Motherboards and chipsets etc. The cost of repairing those systems makes buying a whole new infrastructure the cheapest alternative. The same goes with software, technology changes quickly over time, serial and parallel ports for example have all but left the newest computers in place of a new connection. It will continue to happen, and operating systems will continue to drop support for the older technology as time passes. Either you keep running on 100 year technology and hope it doesn't break down or you start planning to upgrade things gradually.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Lindenberg: I just tried your net use command on my virtual XP machine and it worked just fine. (net use LPT1: \\print1\publishing) Question... Has your Virtual xp been joined to the domain?

logicearth: I'm sure you're trying to be helpful, but I've owned my own businesses before and once you have a system working just the way you want it, it's more like a last resort to change systems... Think of it like this: I have a 15 year old car that has 200k+ miles but I take good care of it and it's running fine. Then something breaks... Does that mean I should get a newer car because eventually I'll have to anyway? Not unless whatever broke is really expensive. Also, he didn't say his hardware was old, just that he wants to run an old DOS program. Unless the media gets corrupted or Windows no longer will run it, it shouldn't break. He may outgrow it eventually, but if he can get this working, he'll save a ton of money and a lot of headaches for now...
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Inspiron 530
OS
Windows 7 Professional 64 bit
Memory
8 GB
Graphics Card(s)
nVidia
Monitor(s) Displays
2
...he'll save a ton of money and a lot of headaches for now...

"for now" Thats all I'm saying. It might work for now, but in the future it might just become way too expensive to maintain verses upgrading.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
logicearth, you're correct on the one assumption, one day it may no longer work, but then those of us who've spent much resource on these past technologies will do what we need to do then, but please don't tell people ('specially me) how or what to do, as if you had all the answers--you have only the answers for yourself; and I'm on this board looking for answers for me, not anyone else.
 

My Computer My Computer

OS
Windows 7 pro 64 bit with XP Mode
logicearth, you're correct on the one assumption, one day it may no longer work, but then those of us who've spent much resource on these past technologies will do what we need to do then, but please don't tell people ('specially me) how or what to do, as if you had all the answers--you have only the answers for yourself; and I'm on this board looking for answers for me, not anyone else.

If you do not want people to tell you want to do, then you shouldn't ask people want you should do...Besides. I'm not forcing anyone to do ANYTHING. So I don't see why you have such a problem, I'm not forcing you to do anything.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I have a problem with negative people who rain on other people's parades. So, I will leave this forum to you and will find a friendlier forum to get my questions answered; and to those you on here that have been helpful, thank you.
 

My Computer My Computer

OS
Windows 7 pro 64 bit with XP Mode
ogicearth thanks for your input. I understand your solution is great, you must be doing very well in life to buy every new thing that comes out. As I understand your decision to not help the OP with a WORKABLE answer maybe you will consider financing your answer. I my case I only need $6,000 to upgrade my software, well that's not counting the programs that are no longer made. So in the case of companies that closed 20 years ago I might need a little more money to find, rent space, rehire staff, well it will run into a few dollars, but I am sure you are dedicated to your answer. Your several posting say how sure you are you are right, and I always envy people who stand behind their opinions. Donald Trump is like that, he would finance the upgrade of old software, or pay for the retraining of all the employees which I am sure you are ready to do. How does everyone with old versions contact you for some money.

Translation: PUT UP OR SHUT UP
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
DellAverSystemax
OS
Win 2000xp10 52/64
CPU
q6700i74790
One thing you might want to try is to reduce the printer share name to 8 character of less and see if that helps. With some of the old DOS stuff, it is better to stick with 8 char limit for shares, file names etc.

HTH
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 64 bit - Server 2008 R2 (64bit)
Thanks for the reminder, I forgot about 8.3, it might be a factor. I have two programs that need to print and DOSPrint worked for the first one. Now I need to change settings in the DOS CONFIG sys file that Windows uses so the second one will even run.

Glad I found that suggestion from someone. Thanks to the board :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
DellAverSystemax
OS
Win 2000xp10 52/64
CPU
q6700i74790
Back
Top