<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - Sending printer control codes from DOS Prompt in XP VM</title>
    <link>http://communities.vmware.com/community/vmtn/desktop/fusion?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 15 May 2009 22:12:28 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-05-15T22:12:28Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Sending printer control codes from DOS Prompt in XP VM</title>
      <link>http://communities.vmware.com/message/1253758?tstart=0#1253758</link>
      <description>The problem at the moment seems to be resolved.&lt;br /&gt;
&lt;br /&gt;
I continued monkeying with things. I kept thinking if I could only get&lt;br /&gt;
the USB device to appear in the Printer Ports list, I could try&lt;br /&gt;
assigning to that, as that is what it is assigned to in the XP Pro VM&lt;br /&gt;
that works. &lt;br /&gt;
&lt;br /&gt;
Checking device manager, there was a yellow exclamation point on the&lt;br /&gt;
USB driver. So I attempted to reinstall that. I tried a bunch of times&lt;br /&gt;
using different sources for the drivers. Usually the installation&lt;br /&gt;
failed, but eventually it succeeded. The USB port was still not there.&lt;br /&gt;
&lt;br /&gt;
As I said, in the VMWare Settings &amp;gt; USB ports, sometimes a port&lt;br /&gt;
labeled "Brother Printer" was there and sometimes not. I saw that it&lt;br /&gt;
was there, so I turned it on.&lt;br /&gt;
&lt;br /&gt;
When back to look at the available ports to assign the printer to, and&lt;br /&gt;
unexpectedly, there was a USB port this time! So I changed from the&lt;br /&gt;
THVM port (ThinPrint Print Port for VMWare) to the USB port.&lt;br /&gt;
&lt;br /&gt;
I tried to print but "no printer was available" so I turned the VMWare&lt;br /&gt;
icon at the bottom of the page back to "enabled" thinking that the&lt;br /&gt;
"reversal" of this icon's function is now over because of being on the&lt;br /&gt;
USB port.&lt;br /&gt;
&lt;br /&gt;
Printing now works. I tested printing from Word, and from the DOS app&lt;br /&gt;
that uses the special mechanism to send printer codes, and both work.&lt;br /&gt;
Printing starts immediately too, instead of a long wait for each page.&lt;br /&gt;
&lt;br /&gt;
So -- I am not sure of the exact sequence needed to solve this problem&lt;br /&gt;
due to the seemingly non-deterministic results, but I think the path to&lt;br /&gt;
the solution that worked goes something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Install printer using manufacturer's driver disk for Brother MFC-8440&lt;/li&gt;
&lt;li&gt;Uninstall / reinstall USB ports. This seemed to fail numerous times, but repeat it a bunch of times anyway.&lt;/li&gt;
&lt;li&gt;Eventually USB port appears in printer port list, so when it does, switch from TPVM port to USB port.&lt;/li&gt;
&lt;li&gt;Toggle printer icon at bottom of VMWare screen to "Connect Brother Printer"&lt;/li&gt;
&lt;li&gt;Test printing from typical Windows app and from "send-codes-plus-DOS-app" bacth file.&lt;/li&gt;
&lt;/ol&gt;
While I am sure there is a more direct route, at least this appears to work for now.</description>
      <pubDate>Fri, 15 May 2009 22:12:28 GMT</pubDate>
      <author>jasimon9</author>
      <guid>http://communities.vmware.com/message/1253758?tstart=0#1253758</guid>
      <dc:date>2009-05-15T22:12:28Z</dc:date>
      <clearspace:dateToText>6 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Sending printer control codes from DOS Prompt in XP VM</title>
      <link>http://communities.vmware.com/message/1253224?tstart=0#1253224</link>
      <description>&lt;span class="value"&gt;I am trying to set up a new Virtual Machine (Windows XP Home guest on OS X host) that can support a legacy DOSapplication that I use to print to a USB printer attached to the host.&lt;br /&gt;
&lt;br /&gt;
The DOS application requires some printer control codes to be sent to theprinter prior to running. It is kind of a kludge to print from DOS to a USB printer. In the previous real Windows environment, the way this was accomplished was by having the following three lines lines in a batch file:&lt;br /&gt;
&lt;br /&gt;
net use lpt1: \\Powerspec4\Brother&lt;br /&gt;
dos_app_that_sends_HP_printer_code_for_88_lines_per_page&lt;br /&gt;
dos_app_that_does_the_printing&lt;br /&gt;
&lt;br /&gt;
I was able to successfully duplicate this function in a virtual machine. However, I am having trouble duplicating it in a newly created instance of the virtual machine. Instead of sending the codes, the characters in the codes are getting printed. I think this is because of differences in the way the VMs are set up.&lt;br /&gt;
&lt;br /&gt;
The differences in the VMs are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="value"&gt;1. The older VM that works fine to send the control codes is using  XP Pro; the new one that does not is XP Home.&lt;br /&gt;
&lt;p /&gt;
&lt;span class="value"&gt;&lt;br /&gt;
&lt;span class="value"&gt;2. In the XP Pro VM, the printer is set to print to the USB port. In the newer XP Home VM, no USB port appears available. I am not sure why it is not available. I have tried various configuration changes including trying to re-install the USB port (which device manager says is not working properly) in the thought that if I could get the USB port to be working properly, and set the printer to use it, then it would work. However, the USB device driver installation fails.&lt;br /&gt;
&lt;p /&gt;
&lt;span class="value"&gt;&lt;span class="value"&gt;3. &lt;br /&gt;
&lt;span class="value"&gt;For some strange reason, the "connect printer" icon at the bottom of the VMWare window acts in the reverse manner: in order to print, it must be in the "disabled" state.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="value"&gt;There are several approaches to this problem:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="value"&gt;1. Solve the problem by getting the "net use" method to work. Namely, print to lpt1 via the net use command, and use a program or command to send the &lt;br clear="all" /&gt; 	proper control codes. Perhaps this involves getting the USB port working, although since I cannot get that far, that may not even be the root cause of the issue. However, it is possibly a step in the right direction and worth points for solving this sub-issue.&lt;br /&gt;
&lt;p /&gt;
&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;br /&gt;
 2. &lt;span class="value"&gt;Come up with a different way to send the control codes. So far everything I have tried results in the printer printing the codes.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;&lt;span class="value"&gt;3. More drastic measures involving modifications to the DOS program to send the codes directly. Since this program dates from around 1988, I really don't want to go there if I don't have to. The reason I used the external DOS utility back in 1988 was because I could not get those control codes to work properly then.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="value"&gt;&lt;br /&gt;
Here are the exact codes that need to be sent to the printer:&lt;br /&gt;
&lt;br /&gt;
To set 88 lines per page: &amp;lt;27&amp;gt;&amp;#38;l88f&amp;lt;27&amp;gt;(s14H&lt;br /&gt;
To reset to 66 lines per page: &amp;lt;27&amp;gt;&amp;#38;l66f&amp;lt;27&amp;gt;(s10H&lt;br /&gt;
&lt;br /&gt;
For clarification, the character to the right of the ampersand is a lower case "L". And the &amp;lt;27&amp;gt; indicates an escape, which can be produced in several different ways. The problem is not creating the codes; it is getting them though the middleware and drivers intact, so the printer treats them as its control codes.&lt;br /&gt;
&lt;br /&gt;
The most frustrating part of this issue is that the XP Pro VM just continues to chug away and send the control codes to the printer. But this is an old VM which I don't what to keep around simply to run this one program.</description>
      <pubDate>Fri, 15 May 2009 16:12:03 GMT</pubDate>
      <author>jasimon9</author>
      <guid>http://communities.vmware.com/message/1253224?tstart=0#1253224</guid>
      <dc:date>2009-05-15T16:12:03Z</dc:date>
      <clearspace:dateToText>6 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
  </channel>
</rss>

