Chapter 6. Working with Scripts

The batch files described in Chapter 5 do provide a reasonable amount of flexibility and they're very easy to produce. However, batch files aren't the same as using an actual programming language. Scripts provide a happy medium between the complexity of a full-fledged programming language that you can compile into an executable and the ease of using batch files. You gain access to more of the system functionality through scripts and have better access to programming constructs, such as flow control. Error trapping is also better with scripts. In fact, you'll be amazed at what scripts can do. People have even developed games in them and most of the Web pages on the Internet rely on scripts to perform tasks in the ...

Get Administering: Windows Server® 2008 Server Core 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.