As you learn more, you??™ll be able to create scripts of increasing complexity.
Scripting isn??™t hard to learn, but you need to take your time and learn it a bit at a time.
TIP Windows XP and above don??™t include any sample scripts. However, earlier versions of Windows
do include a sample directory for scripts that you can use to learn more about the scripting
process. You can still download the script samples from Microsoft??™s site at http://msdn2
.microsoft.com/en-us/library/ms950396.aspx. You can find examples of scripts in
Server Core. For example, change directories to the root directory of the Server Core drive (use
CD \), type Dir *.VBS /S, and press Enter. You??™ll see a number of VBScript examples that you
can examine (don??™t execute them unless you know what task they perform).
WSH depends on objects that Microsoft supplies as part of Windows to perform tasks such as
outputting text to the display. This chapter demonstrates the latest version of WSH. Every version
of Windows has similar objects, but you might not find some objects in older versions of Windows.
NOTE An object consists of three elements: properties, methods, and events.
Pages:
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455