DOS LPT1 Print to USB in XP guest

Discussion in 'Windows Virtual Machine' started by RalphA, Dec 8, 2011.

  1. RalphA

    RalphA Bit poster

    Messages:
    5
    I'm having the hardest time getting a DOS app I have to print to the connected USB printer in an XP guest. Using the usual net use trick fails:

    net use lpt1 \\HomeBox\Printer /Persistent:Yes

    where "HomeBox" is my computer name and "Printer" is the shared printer name in the XP printer object. That works fine when running XP as the host on a PC. And yes, when XP is running as guest in the Parallels VM on my Mac Mini with OSX Lion installed, XP can definitely print from that VM.

    What am I missing?
     
  2. JeffereyL

    JeffereyL Bit poster

    Messages:
    2
    Ralp, did you ever get this resolved, it is driving me NUTS and prhobiting switching multiple machines to mac platform :( ....
     
  3. RalphA

    RalphA Bit poster

    Messages:
    5
    Though I eventually moved to VMware, this is what works for me:

    @echo off
    NET USE LPT1 /DELETE
    net use lpt1 \\HomeBox\Printer /Persistent:Yes

    Note that my batch file first deletes the exisitng LPT1 assignment.
     
  4. JeffereyL

    JeffereyL Bit poster

    Messages:
    2
    So under VMware everything worked ok when you issued the net use command ? Cause I was getting erros when trying to issue the command, I will try what you posted above. You issued that batch command everytime you started your Virtual OS ?
     
  5. RalphA

    RalphA Bit poster

    Messages:
    5
    It works fine, but not if you use Windows 7. I assume you're trying this with XP. You're out of luck with Windows 7.
     

Share This Page