Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DOS program on virtual xp print lpt1


15 Sep 2010   #1

Windows 7
 
 
DOS program on virtual xp print lpt1

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 System SpecsSystem Spec
.

15 Sep 2010   #2

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

Quote   Quote: Originally Posted by WayCon View Post
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 System SpecsSystem Spec
15 Sep 2010   #3

Windows 7
 
 

That is a possibility. Is there a way to install DOS without a floppy drive (and the discs)?

Thank you, Lemur.
My System SpecsSystem Spec
.


15 Sep 2010   #4

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

It's been a while. Maybe you can find a solution here.

Bart's way to create bootable CD-Roms (for Windows/Dos)

Oh, a better way is to get an ISO DOS image, and your virtual pc can load the iso image.

Bootable images here:

http://www.bootdisks.us/ms-dos/5/ms-...cd-images.html
My System SpecsSystem Spec
15 Sep 2010   #5

Windows 7
 
 

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 System SpecsSystem Spec
15 Sep 2010   #6

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

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 System SpecsSystem Spec
15 Sep 2010   #7

WIN7 Ultimate 64bit
 
 

Fascinating thread!

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 System SpecsSystem Spec
15 Sep 2010   #8

Windows 7
 
 

Quote   Quote: Originally Posted by neo101 View Post
Fascinating thread!
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 System SpecsSystem Spec
15 Sep 2010   #9

Windows 7
 
 

Quote   Quote: Originally Posted by neo101 View Post

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 System SpecsSystem Spec
16 Sep 2010   #10

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

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 System SpecsSystem Spec
Reply

 DOS program on virtual xp print lpt1




Thread Tools



Similar help and support threads for2: DOS program on virtual xp print lpt1
Thread Forum
Solved Printing problem through docking station to LPT1 Hardware & Devices
EPSON Print CD program Software
Unable to map printer to LPT1 Hardware & Devices
unable to print to lpt1 via a self propietary software. General Discussion
need a good print program. Software
print program Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:13 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33