DOS program on virtual xp print lpt1

WayCon

New member
Local time
7:14 AM
Messages
21
I have a new machine with Windows 7 and an old dos program (dBase) and an parallel port receipt printer (generic). I have everything up and running on Virtual XP, so I can print from, say, notepad to the printer. Fine. An interesting thing is that if I bring up the printer status bar ("See what's printing") both in Windows 7 and Virtual XP, I see the data pass from the XP status bar to the Windows 7 status bar. Interesting, but if I print from my DOS dBase app., I see nothing pop up in the XP window. My question is thus:

1.) can DOS programs print to an LPT1 printer port in Virtual XP?
2.) if so, how?
2.) and, if not, is there some sort of Virtual Windows 2000, and will that work?

Thank you for reading my request, and, if possible, for replying.
 

My Computer

OS
Windows 7
I have a new machine with Windows 7 and an old dos program (dBase) and an parallel port receipt printer (generic). I have everything up and running on Virtual XP, so I can print from, say, notepad to the printer. Fine. An interesting thing is that if I bring up the printer status bar ("See what's printing") both in Windows 7 and Virtual XP, I see the data pass from the XP status bar to the Windows 7 status bar. Interesting, but if I print from my DOS dBase app., I see nothing pop up in the XP window. My question is thus:

1.) can DOS programs print to an LPT1 printer port in Virtual XP?
2.) if so, how?
2.) and, if not, is there some sort of Virtual Windows 2000, and will that work?

Thank you for reading my request, and, if possible, for replying.

Since you are running a virtual pc, and since you can have more than one OS, why don't you install (and I can't believe I'm saying this) DOS?

Do you actually have a parallel port? Or need to redirect?
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
That is a possibility. Is there a way to install DOS without a floppy drive (and the discs)?

Thank you, Lemur.
 

My Computer

OS
Windows 7

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
With these bootable images, do I simply enter Virtual PC and choose to install DOS? I can't find any clear (to me) explanation of the process.

I do note that several seemingly reputable sites have executable files to install DOS. Do you know anything about them?

I just noticed the question you asked me earlier: Yes I do have an actual parallel port that does work. I wasn't able to pass data from my DOS program in Virtual PC to the printer. As I mentioned above (in more detail) notepad in Virtual PC does go to LPT1 and I get a print out.

Also, just to ask again, does (Virtual) XP allow DOS to print to LPT1?

Again, thank you.
 

My Computer

OS
Windows 7
Correct. You create a new operating system, and select the iso image instead of booting off the dvd drive.

**EDIT** you do not want the executable. just the iso.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
Fascinating thread! :cool:

This might help >>>
http://geekswithblogs.net/dtotzke/articles/26204.aspx

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

Networked printer also =
If it's running in DOS on Windows you can simply do:
NET USE LPT1: \\machine_name\PrinterShareName /PERSISTENT:YES
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
D.I.Y.
OS
WIN7 Ultimate 64bit
CPU
AMD FX8150/Trinity A10-5700
Motherboard
Asus Sabertooth v.1 /Asus F2A85-M Pro
Memory
G-Skill 2400 x2 @ 1866 (both pc's)
Graphics Card(s)
Sapphire (factory OC version) AMD 7770
Sound Card
onboard
Monitor(s) Displays
T260 Samsung
Screen Resolution
1920x1080
Hard Drives
Western Digital Sata 2TB/1TB Caviar Blacks
Buffalo 1TB usb (excellent drive)
PSU
Be-Quiet 700W E-9/Be-Quiet 550W E-9(E-9 = built by FSP)
Case
Antec P183/Antec P180mini
Cooling
x2 Xigmatek SXHH7-U01 + C-Master R4-EXBB-20PK-R0 120mm Fans
Keyboard
Cherry
Mouse
MS Explorer 3.0
Other Info
LG Blu ray combo
Pioneer 207D/208 Blu ray burners
Fascinating thread! :cool:

Hi there. Well, yes, I guess this could be fascinating.

The reality is that, like a lot of small business, I have an application, a POS system, that works really well and which I wrote--it fits our needs exactly--BUT it's written on dBase IV and I don't want to have to rewrite and retest everything.

Often enough, computing gets ahead of people's day to day needs (look at word processors).

That's my excuse.
 

My Computer

OS
Windows 7
1) Install the Microsoft Loopback Adapter....

Thank you for this, neo101.

Does you suggestion imply a network printer? If so, and if all else fails, I suppose I could get a new printer and make it a network printer. Still, as I indicated in my first post, I don't see Virtual XP passing a print-out from DOS to Windows 7. I'm almost wondering if the right thing would be to install a virtual Windows 2000, which I know does work with DOS, and see if that will pass the data to Windows 7.

And then there's another question. Which operating system should have the drivers? The virtual OS, Windows 7, or both? Then, what about antivirus? Both OSs?

Crazy.
 

My Computer

OS
Windows 7
I did install DOS on my virtual pc as a test. Worked fine (funny not to have a mouse again). It still would be tricky, as you would need drivers to access your CD/DVD drive, printer, etc. I like the redirect solution by waycon.

IMHO, you should bite the bullet and convert your dBase program to MS Access. I understand it's worked fine all these years. And frankly I'm surprised you didn't get bitten by Y2K. A competent programmer would have no problem with the conversion.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
Thank you, Lemur, for your comments.

Perhaps I should "bite the bullet" as you said, but that would still be time consuming. If my Windows 2000 Pro computer went down today, I'd need a solution today. Reprogramming is longer term, certainly. Thus I would like to press on with this project as well.

When you said, "I like the redirect solution by waycon," did you mean installing Windows 2000 in Virtual PC?

Also, and I would understand a "No" to this question, if I sent a copy of dbase with my POS app on it, could you test it to see if it would print out?

I thank you for all you have done. Quite an experiment.
 

My Computer

OS
Windows 7
Thank you, Lemur, for your comments.

Perhaps I should "bite the bullet" as you said, but that would still be time consuming. If my Windows 2000 Pro computer went down today, I'd need a solution today. Reprogramming is longer term, certainly. Thus I would like to press on with this project as well.

When you said, "I like the redirect solution by waycon," did you mean installing Windows 2000 in Virtual PC?

Also, and I would understand a "No" to this question, if I sent a copy of dbase with my POS app on it, could you test it to see if it would print out?

I thank you for all you have done. Quite an experiment.

I'd be glad to take a look at your program. I do have a DOS-based program at the university used for public health called EPI Info. They have a Windows version, but the users stick to the DOS-based version. It is a real pain getting them to print, and our printers are all networked.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
Thank you, Lemur, for offering to look at my app. What I will do, then, is upload, in a zip file, everything necessary and post it on, say, fileshare, then send you the address for downloading. I'll send that in an email, as I don't want to show all the world my POS. I'll send you my email address if that's all right, then edit it out when you have copied it down.
 

My Computer

OS
Windows 7
Thank you, Lemur, for offering to look at my app. What I will do, then, is upload, in a zip file, everything necessary and post it on, say, fileshare, then send you the address for downloading. I'll send that in an email, as I don't want to show all the world my POS. I'll send you my email address if that's all right, then edit it out when you have copied it down.

That will be fine.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
OK, my email address is:

**edited**

I'll delete this as soon as you tell me you have written it down. Then you can send me a note with, of course, your address.

Thank you.
 

My Computer

OS
Windows 7
OK, my email address is:


I'll delete this as soon as you tell me you have written it down. Then you can send me a note with, of course, your address.

Thank you.

Done. You could have sent this as a private pm.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
I should have known, but I didn't.

Thank you, Lemur, and I will be emailing you soon.
 

My Computer

OS
Windows 7
Back
Top