title: Send text file directly to network printer
body: <p>I have currently-working code which sends raw data to a printer by writing a temporary file, then using <code>File.Copy()</code> to send it to the printer.  <code>File.Copy()</code> supports both local ports, like <code>LPT1</code> and shared printers like <code>\\FRONTCOUNTER\LabelPrinter</code>.  </p>
  
  <p>However, now I'm trying to get it working with a printer that's directly on the network: <code>192.168.2.100</code>, and I can't figure out the format to use.</p>
  
  <pre><code>File.Copy(filename, @"LPT1", true); // Works, on the FRONTCOUNTER computer
  File.Copy(filename, @"\\FRONTCOUNTER\LabelPrinter", true); // Works from any computer
  File.Copy(filename, @"\\192.168.2.100", true); // New printer, Does not work
  </code></pre>
  
  <p>I know it's possible to "Add a printer" from each computer, but I'm hoping to avoid that - the second line of code above works from any computer on the network automatically, with no configuration required.  I also know it's possible to P/Invoke the windows print spooler, and if that's my only option I may take it, but that's much more code overhead than I'd like to have.</p>
  
  <p>Ideally, someone will have either a way to make <code>File.Copy()</code> work or a similar C# statement which will accept a network IP.</p>