DOS program on virtual xp print lpt1

Page 1 of 2 12 LastLast

  1. Posts : 21
    Windows 7
       #1

    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 Computer


  2. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #2

    WayCon said:
    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


  3. Posts : 21
    Windows 7
    Thread Starter
       #3

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

    Thank you, Lemur.
      My Computer


  4. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #4

    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 Computer


  5. Posts : 21
    Windows 7
    Thread Starter
       #5

    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


  6. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #6

    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


  7. Posts : 592
    WIN7 Ultimate 64bit
       #7

    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 Computer


  8. Posts : 21
    Windows 7
    Thread Starter
       #8

    neo101 said:
    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 Computer


  9. Posts : 21
    Windows 7
    Thread Starter
       #9

    neo101 said:

    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


  10. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #10

    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


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 00:51.
Find Us