Prev | Current Page 417 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Here??™s an example of external code access in a WSF file.




The

element makes it possible to load the external code contained in the
MyComponent
file. You access a particular class,
MyClass
, within that object and instantiate by setting
ObjRef
equal to the output of
CreateObject()
. Now that the code has an object to use, it can
call the
MyMethod()
method. The output of this call appears in
Result
. When
Result
contains an
unexpected value, the code can display an error message to the user. Although this feature is very
simple, it does provide you with access to a wealth of additional resources and makes your scripts
considerably more flexible.
Executing Scripts
All you need to create a standard script is a text editor, such as Notepad, and a little time. (If you
want to create a WSF, then you really should use an editor designed for the purpose.


Pages:
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
biustonosze teksty piosenek czym jest nowomowa Dyskusja Nr4 Titan Poker Bonus Kod