Prev | Current Page 439 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"


else
{
for (intCount = 0;
intCount < WScript.Arguments.Length;
intCount++)
strArguments = strArguments +
WScript.Arguments.Item(intCount) + ???\r\n\t???;
WshShell.Popup(strArguments,
0,
???Argument List Display???,
intOK + intInformation);
}
}
When you run this script, you??™ll see a dialog box containing all of the information about the script
engine. When you click OK, the program asks if you want to display the command line arguments.
If you say yes, then you??™ll see anything you typed at the command line. Otherwise, the script displays
a Goodbye message.
You should notice a few things about this example. First, I created an object in this code. You
need access to the WshShell object for many of the tasks you??™ll perform with scripts. The code also
shows how to use the Popup() method to obtain information from the user. Finally, the code uses
the Arguments object to access the command line information. Notice the object hierarchy used in
this example.
Scripting the Registry
Many of the utilities described in this book rely on the registry to store and retrieve data about the
machine, the operating system, the user, and the application itself.


Pages:
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
totolotek Pozycjonowanie włosy palmtop konta oszczędnościowe