In fact, it assumes that you already know
something about scripting or are willing to look at online resources if you don??™t. However, you??™ll
discover how scripting can make you extremely effective at the command line. The following
sections help you understand scripting languages, learn how to execute them at the command line,
and then create scripts under a variety of conditions. Finally, you??™ll learn how to overcome security
problems that using scripts might incur in today??™s complex workstation environment.
In this chapter, you??™ll learn how to do the following:
?
Work with scripting languages
?
Execute scripts using CScript and WScript
?
Script network solutions using the NetSH utility
?
Write a basic script
?
Use scripting objects
?
Change the environment using a script
?
Test a script for errors
Understanding Scripting Languages
There are many scripting languages on the market today. Space won??™t allow me to discuss them all,
even if I knew them all. The following sections discuss JavaScript and VBScript for one reason??”
they??™re the languages that Windows supports out of the box so you don??™t need to install anything
special to use them.
Pages:
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418