Printing in dos on a Microsoft Virtual PC  to lpt port that is mapped on a xp pro local machine  to a network share

Posted on 2010-11-25
Last Modified: 2012-05-10
I installed a  Microsoft Virtual PC on a xp pro  that is printing to a network printer that is mapped to lpt1  .
The printer is working if I send in the xp ( local ) to lpt1 info
On the dos in the Virtual PC  enables' the lpt1 port
The Virtual PC cannot print to the network
What is the correct way to use the Virtual PC to send the output info to the lpt1 and to a network printer in a dos system
Eli Naim
Question by:mittwoch
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 20

Expert Comment

by:Iain MacMillan
ID: 34212365
assuming the VM is using NAT and you existing system's IP to link to the network, you should be able to map a generic printer port from the VM to an existing network printer.

add a printer you already have on the LAN to the VM, make a note of the printer server name and the SHARE name of the printer, once done, from a command prompt:

NET USE LPT1 \\nameofprintserver\printersharename /PERSISTANT:YES

this will make a permanent link from DOS LPT1 to your chosen printer for basic printing.


Author Comment

ID: 34213566
adding more info on the system

The dos 6.22   system on a vm is not in a network support  and has now network access
The dos system is under the vm and has a lpt1 enabled in the computer that is running the vm ( XP ) the lpt1 is mapped to the network printer and works ok .


LVL 20

Expert Comment

by:Iain MacMillan
ID: 34216054
thanks for the update, glad you got it working.
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


Author Comment

ID: 34216355
i missed the info that the printer work ok on the windows system and not on the dos  system that is on a vm


LVL 20

Expert Comment

by:Iain MacMillan
ID: 34216895
ah ok - what VM software are you using, as you should be able to enable a parallel port mode under options, that will link LPT1 in DOS to your windows system printer, when you use the command I gave above.  You may find it easier to run the DOS environment from within an XP system, as mapping printers is a lot easier - its what I currently do for a few staff who require access to our Sage for DOS archives.

With the likes of VMware Workstation, you simply edit the virtual machine settings, and under the hardware tab, add a Parallel port, before starting the VM.

Under Virtualbox, there is no option or current support for LPT ports that i am aware of, though it is often requested.

Author Comment

ID: 34222968
I am using Microsoft vp  and the lpt port in the vm is enable and mapped to the lpt1  port of the xp
I cannot work in the dos ver of windows i need the dos 6.22 ver


LVL 20

Accepted Solution

Iain MacMillan earned 500 total points
ID: 34237702
then you may have to create a network boot media/disk to operate in DOS, to give you network ability inside the VM.  I haven't used MS VPC in a long time, and can't remember if its LPT port mapping works only from Windows VM's or not.

Bart's website is very comprehensive, and you should be able to build a network disk from his instructions, but no longer active/updated -

This site has also helped me in the past with Ghost multi-casting (requiring DOS Network ability years ago), and its very current -
LVL 69

Expert Comment

ID: 34429029
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Quadro graphics cards for ESX 6 19 78
has anyone used Parallels Desktop 12 for Mac? is it working? 14 106
export VOF from ESXi 5.5, import to ESXi 4.1 8 81
Hyper-V server/storage 15 72
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question