Prev | Current Page 438 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Path +
???\r\nScript Full Name:\t??? + WScript.ScriptFullName +
???\r\nScript Name:\t??? + WScript.ScriptName +
???\r\nVersion:\t\t??? + WScript.Version,
0,
???Program Information Demonstration???,
intOK + intInformation);
// Ask if the user wants to display the argument list.
intReturn = WshShell.Popup(???Do you want to display the argument list????,
0,
???Argument List Display???,
intYesNo + intQuestion);
// Determine if the user wants to display the argument list and
// display an appropriate message.
if (intReturn == intYes)
// See if there are any arguments to display.
DisplayArguments();
else
WScript.Echo(???Goodbye???);
function DisplayArguments()
{
// Create some variables.
var strArguments = ???Arguments:\r\n\t???; // Argument list.
var intCount = 0; // Loop counter.
174 CHAPTER 6 WORKING WITH SCRIPTS
// See if there are any arguments, if not, display an
// appropriate message.
if (WScript.Arguments.Length == 0)
WshShell.Popup(???There are no arguments to display.???,
0,
???Argument List Display???,
intOK + intInformation);
// If there are arguments to display, then create a list
// first and display them all at once.


Pages:
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
agroturystyka bory tucholskie Pozycjonowanie kratki ściekowe Curriculum Vitae hologram