<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting the Printer Port</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/04/05/getting-the-printer-port/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/04/05/getting-the-printer-port/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mp3rat0r</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/04/05/getting-the-printer-port/#comment-42233</link>
		<dc:creator>mp3rat0r</dc:creator>
		<pubDate>Wed, 18 Nov 2009 11:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1827#comment-42233</guid>
		<description>&lt;p&gt;@fzz&lt;br&gt;
First command doesn&#039;t help. There is no entry containing the &quot;Ne0x:&quot; info.&lt;br&gt;
Your second command works perfect.&lt;br&gt;
Thanks a lot:-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@fzz<br />
First command doesn&#8217;t help. There is no entry containing the &#8220;Ne0x:&#8221; info.<br />
Your second command works perfect.<br />
Thanks a lot:-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fzz</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/04/05/getting-the-printer-port/#comment-31740</link>
		<dc:creator>fzz</dc:creator>
		<pubDate>Sun, 06 Apr 2008 22:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1827#comment-31740</guid>
		<description>&lt;p&gt;OK, a message I posted yesterday didn&#039;t come through, so I&#039;ll express it differently.&lt;/p&gt;
&lt;p&gt;This is simple from the command line. Either&lt;/p&gt;
&lt;p&gt;rundll32 printui.dll,PrintUIEntry /Xg /n &quot;\servernameprintername&quot;&lt;/p&gt;
&lt;p&gt;which displays the information in a dialog, or adding another option to it,&lt;/p&gt;
&lt;p&gt;rundll32 printui.dll,PrintUIEntry /Xg /n &quot;\servernameprintername&quot; /f &quot;filename.ext&quot;&lt;/p&gt;
&lt;p&gt;which stores the information AS UNICODE TEXT in the file named filename.ext, or by querying the registry directly and parsing the result,&lt;/p&gt;
&lt;p&gt;for /F &quot;skip=3 tokens=2 delims=,&quot; %a in (&#039;reg query&lt;br&gt;
&quot;HKCUSoftwareMicrosoftWindows NTCurrentVersionDevices&quot;&lt;br&gt;
/v &quot;\servernameprintername&quot;&#039;) do echo %a &gt; filename.ext&lt;/p&gt;
&lt;p&gt;which also stores the result in the file named filename.ext.&lt;/p&gt;
&lt;p&gt;All it takes is running one of these commands from VBA using Shell and reading filename.ext.&lt;/p&gt;
&lt;p&gt;Depressing how few presumably sophisticated Windows users still know how to use the command line.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>OK, a message I posted yesterday didn&#8217;t come through, so I&#8217;ll express it differently.</p>
<p>This is simple from the command line. Either</p>
<p>rundll32 printui.dll,PrintUIEntry /Xg /n &#8220;\servernameprintername&#8221;</p>
<p>which displays the information in a dialog, or adding another option to it,</p>
<p>rundll32 printui.dll,PrintUIEntry /Xg /n &#8220;\servernameprintername&#8221; /f &#8220;filename.ext&#8221;</p>
<p>which stores the information AS UNICODE TEXT in the file named filename.ext, or by querying the registry directly and parsing the result,</p>
<p>for /F &#8220;skip=3 tokens=2 delims=,&#8221; %a in (&#8216;reg query<br />
&#8220;HKCUSoftwareMicrosoftWindows NTCurrentVersionDevices&#8221;<br />
/v &#8220;\servernameprintername&#8221;&#8216;) do echo %a &gt; filename.ext</p>
<p>which also stores the result in the file named filename.ext.</p>
<p>All it takes is running one of these commands from VBA using Shell and reading filename.ext.</p>
<p>Depressing how few presumably sophisticated Windows users still know how to use the command line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/04/05/getting-the-printer-port/#comment-31707</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 05 Apr 2008 17:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1827#comment-31707</guid>
		<description>&lt;p&gt;Simple point of grammar  I believe you meant to write, &quot;If you&#039;re a late binding kind of a guy...&quot; in the text just below the first image. You typed &quot;your&quot; when &quot;you&#039;re&quot; or &quot;you are&quot; seems more appropriate.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Simple point of grammar  I believe you meant to write, &#8220;If you&#8217;re a late binding kind of a guy&#8230;&#8221; in the text just below the first image. You typed &#8220;your&#8221; when &#8220;you&#8217;re&#8221; or &#8220;you are&#8221; seems more appropriate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

