July 2002
Intermediate to advanced
736 pages
16h 43m
English
ROAD MAP
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 that you run unattended from the Task Scheduler.
Windows Script Host programs can query and manage your computer's network and printer connections. You might want to do this for several reasons, such as the following: ...