Prev | Current Page 450 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"


Make sure you spend time looking at all of the objects described in the script resource Web pages
provided in this chapter. You might be surprised at how much work a script can perform with only a
modicum of work on your part. Even though the WScript objects described in this section are your
most important resource, don??™t neglect the other resources at your fingertips.
USING THE SCRIPTING OBJECTS 179
Item(intIndex) Retrieves a specific command line argument. intIndex contains the index of
the argument that you want to retrieve. The array used to hold the arguments is 0 based, so the
first argument number is 0.
Count() Returns the number of command line arguments.
Length() Returns the number of command line arguments. WSH provides this property for
JScript compatibility purposes.
Working with the WScript.WshShell Object
You??™ll use the WScript.WshShell object to access the Windows shell (the part of Windows that
interacts with applications and creates the user interface) in a variety of ways. For example, you can
use this object to read the registry or to create a new shortcut on the desktop. This is an exposed
WSH object, which means you can access it directly.


Pages:
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
Pozycjonowanie agencja detektywistyczna Odżywki fundusz emerytalny eksiegarnia