How to print to network printer from the command prompt

  1. Map an LPT port to the desired printer
    >net use LPT3: \\server\printer /persistent:yes
  2. To print, use the copy command to send the desired file to the printer
    >copy sample.pcl LPT3
  3. To remove the port mapping
    >net use LPT3: /delete