5. Network and Printer Objects

In This Chapter

• This chapter shows how to use the WScript.Network object to control mapped network drives and network printer connections.

• You should be comfortable with the material in Chapter 3, “Scripting and Objects,” before reading this chapter.

• You can use WScript.Network to control printing from DOS applications as well as Windows applications.

• The last section shows how you can send output from a script directly to a printer—this is especially useful with scripts you run unattended from the Task Scheduler.

Managing Network and Printer Connections

Windows Script Host (WSH) programs can query and manage your computer’s network and printer connections. You might want to do this for several reasons, ...

Get Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.