• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. The Windows Script Host > Network Printer-Related Functions

9.13. Network Printer-Related Functions

WSH provides access to connected network printers in a similar fashion to network drives. You can enumerate (list), add, and remove network printer connections. The network printers are connected to a specified printer port, such as LPT1.

These connected printers are not the same as printers added using Control Panel settings, so they are not accessible to Windows applications and are therefore of limited use. The SetDefaultPrinter method uses the Control Panel printer settings. Future versions of WSH will support manipulation of Windows printers.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint