title: pywintypes.error: (31, 'ShellExecute', 'A device attached to the system is not functioning.') when using ip/url for path
body: <p>Hi so i have a code where it supposed to print out hardcopy of a pdf documents.
  Issue is i got said error when trying to print it when i set the path using ip/url.</p>
  <pre><code>def printInvoice(inv_id):
      _filepath = &quot;http://192.168.0.72:8000/AR/invoice/&quot;+inv_id+&quot;.pdf&quot;    
      print(_filepath)
      printTheFile(_filepath)
  
  def printTheFile(_file):
      currentprinter = win32print.GetDefaultPrinter()
      win32api.ShellExecute(0, 'print', _file, None, &quot;.&quot;, 0)
      time.sleep(1)
      os.system(&quot;TASKKILL /F /IM Acrobat.exe&quot;)
  
  inv_id = &quot;INV2204-001&quot;
  printInvoice(inv_id)
  </code></pre>
  <p>If i set the path to just print it out directly from the script folder like <code>&quot;AR\\invoice&quot;</code> it works fine</p>
  <p>Anyway, i make the folder available by using <code>python -m http.server</code> which makes it also available to be access on browser.</p>
  <p>The goal is to make it able to work on multiple devices and print the pdf over the internet from one device that stores the docs.</p>