O'Reilly logo

Windows PowerShell™ 2.0 Best Practices by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Handling Input and Output

There are few scripts that neither receive input nor produce output. These are primarily scripts that run a series of commands in a preconfigured, batch-oriented manner. Most scripts by IT professionals, however, require either input or output, and most scripts need both. Clearly, for maximum flexibility, scripts must receive input. To maximize utility, most scripts have to produce output.

The form of input and the manner of output are part of the design process and therefore are the purview of the scriptwriter. Traditional input takes the following forms:

  • Read from the command line

  • Read from a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required